X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=doc%2Ffuncref.sgml;h=409eefc877dc1e4d528ccb2d8d8d4854f877022d;hb=8806c31e4a00785be628ea8cde35fa4c94cc2ab6;hp=2161a5d8f0053582523d096e51c5f9ff0b5c8fd4;hpb=025221f44af9024a71b6aa915eca2328bf681194;p=cc65 diff --git a/doc/funcref.sgml b/doc/funcref.sgml index 2161a5d8f..409eefc87 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -64,12 +64,23 @@ function.

-(incomplete) + +_dos_type + +rebootafterexit +

-(incomplete) + +_dos_type + +rebootafterexit +textframe +textframexy + +

@@ -81,6 +92,10 @@ function.

+ + + + (incomplete) @@ -94,8 +109,9 @@ function. - + + @@ -106,7 +122,9 @@ function.

-(incomplete) + + +

@@ -198,9 +216,11 @@ function. + + @@ -255,20 +275,21 @@ function.

- - - - - - - - - - - - - - + + + + + + + + + + + + + + + (incomplete) @@ -362,6 +383,7 @@ It does not declare any functions.

+ @@ -372,7 +394,6 @@ It does not declare any functions. - @@ -391,15 +412,18 @@ It does not declare any functions. - + + + + @@ -414,7 +438,6 @@ It does not declare any functions. - @@ -436,7 +459,6 @@ It does not declare any functions. - @@ -471,8 +493,8 @@ It does not declare any functions. - - + + @@ -482,8 +504,47 @@ It does not declare any functions.

-(incomplete) - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

@@ -643,21 +704,21 @@ id="malloc" name="malloc"> may still return _poserror

- - +/ / with an -argument of Since operating system specific error code are - you guessed it - operating system specific, the value in The function is only available as fastcall function, so it may only be used in presence of a prototype. @@ -795,8 +856,8 @@ is present. / The function is actually a macro. Disabling interrupts may lead to unexpected results. @@ -916,10 +977,11 @@ depend of the address expression used. / The function is actually a macro. +Disabling interrupts may lead to unexpected results. +em_install

+ + + +/ + +Not all drivers are able to detect if the supported hardware is really +present. +The function is only available as fastcall function, so it may only be +used in presence of a prototype. + +, +, + + + + + em_load_driver

@@ -1801,7 +1889,7 @@ extended memory that should be supported. There is no autodetect capability. memory and returns a pointer to the page frame. Depending on the hardware and driver, the data is either mapped into the address space or transfered into a buffer. If you don't need the actual contents of the page (for example -because you're going to overwrite it completely, it is better to call +because you're going to overwrite it completely), it is better to call / instead. @@ -1844,13 +1932,40 @@ by the driver in 256 byte pages. +em_uninstall

+ + + +/ + +If the driver has been loaded using /, / +should be used instead of The function is only available as fastcall function, so it may only be +used in presence of a prototype. + +, +, + + + + + em_unload

/ - @@ -1939,7 +2054,8 @@ will nearly double the speed compared to slow mode. , - +, + @@ -2050,6 +2166,28 @@ be used in presence of a prototype. +get_ostype

+ + + +, +, / + +The function does not exist on all platforms. +The return codes are platform dependent. + + + + + getenv

@@ -2183,9 +2321,9 @@ to undefined behaviour. / When compiling with / When compiling with / When compiling with / When compiling with / When compiling with / When compiling with / When compiling with / When compiling with / When compiling with / When compiling with / / When compiling with / When compiling with -offsetof

+mouse_setbox

-/ -/ + -The function is actually a macro. +The function does not check if the mouse cursor is currently within the +given rectangle. Placing the mouse cursor within the bounding box is the +responsibility of the programmer. +While the bounding box may be larger than the actual screen size, the +standard mouse cursor draw routines may fail to set the cursor to coordinates +outside of the screen area. Depending on the platform, you may have to supply +your own mouse cursor routines. +The function is only available as fastcall function, so it may only be +used in presence of a prototype. -, + -open

+mouse_getbox

-/ -/ + -POSIX specifies an additional The function is only available as fastcall function, so it may only be +used in presence of a prototype. -, - +, + -peekbsys

+mouse_buttons

-/, -/ - -The function is only available as fastcall function, so it may only -be used in presence of a prototype. -This function may be a macro depending on the compiler options. The -actual function is accessible by #undef'ing the macro. +/ + +The function is only available as fastcall function, so it may only be +used in presence of a prototype. , -, -, -, - +, + -peekwsys

+mouse_geterrormsg

-/, -/ - -The function is only available as fastcall function, so it may only -be used in presence of a prototype. -The order in which the two bytes are read is undefined. +/ + +The function will return "Unknown error" for invalid error codes. +The function is only available as fastcall function, so it may only be +used in presence of a prototype. , -, -, -, - +, +, + -perror

+mouse_hide

-/ -/ with an argument of -The function is only available as fastcall function, so it may only -be used in presence of a prototype. +/ +/ and +/ to make the mouse cursor +visible. + +The function is only available as fastcall function, so it may only be +used in presence of a prototype. -, - + -pokebsys

+mouse_info

-/, -/ - -The function is only available as fastcall function, so it may only -be used in presence of a prototype. +/ + +The / instead. +The function is only available as fastcall function, so it may only be +used in presence of a prototype. , -, -, -, - +, + -pokewsys

+mouse_install

-/, -/ - -The function is only available as fastcall function, so it may only -be used in presence of a prototype. -The order in which the two bytes are written is undefined. +/ + +Not all drivers are able to detect if the supported hardware is really +present. +After installing a driver, the mouse cursor is hidden. +The function is only available as fastcall function, so it may only be +used in presence of a prototype. , -, -, -, - +, +, + -qsort

+mouse_ioctl

-/ - -If there are multiple members with the same key, the order after calling -the function is undefined. -The function is only available as fastcall function, so it may only -be used in presence of a prototype. +/ + +Calling this function is non portable, because each driver may +implement different ioctl calls (or none at all). +The function is only available as fastcall function, so it may only be +used in presence of a prototype. - + -raise

+mouse_load_driver

-/ -/ + -The function is only available as fastcall function, so it may only -be used in presence of a prototype. - -, - +The driver is loaded by name, so currently you must know the type of +mouse that should be supported. There is no autodetect capability. +Not all drivers are able to detect if the supported hardware is really +present. +After installing a driver, the mouse cursor is hidden. +The function is only available as fastcall function, so it may only be +used in presence of a prototype. + +, +, + -rand

+mouse_move

-/ -/ + -Without using , always the same -flow of numbers is generated. -On startup, the function behaves as if -had been used with an argument of 1. +The function does not check if the new position is within the bounding +box specified with /. +The function is only available as fastcall function, so it may only be +used in presence of a prototype. + +, + + + + + +mouse_pos

+ + + +/ + +The / instead. +The function is only available as fastcall function, so it may only be +used in presence of a prototype. + +, + + + + + +mouse_show

+ + + +/ +/ and +/. + +The function is only available as fastcall function, so it may only be +used in presence of a prototype. + + + + + + +mouse_uninstall

+ + + +/ + +If the driver has been loaded using /, / +should be used instead of The function is only available as fastcall function, so it may only be +used in presence of a prototype. + +, +, + + + + + +mouse_unload

+ + + +/ + +The function does nothing if no driver is loaded. + +, +, + + + + + +offsetof

+ + + +/ + +The function is actually a macro. + + + +open

+ + + +/ + +POSIX specifies an additional +, - +, + -realloc

+peekbsys

-/ -/, +/ + -The part of the memory block that is returned will have its contents -unchanged. -This function is somewhat dangerous to use. Be careful to save the -pointer you're passing somewhere else, otherwise - - ptr = realloc (ptr, size); - -will loose your only copy of The function is only available as fastcall function, so it may only be used in presence of a prototype. +This function may be a macro depending on the compiler options. The +actual function is accessible by #undef'ing the macro. -, -, -, -, -, -, - +, +, +, +, + -remove

+peekwsys

-/ -/, +/ + -This function is not available on all cc65 targets (depends on the -availability of file I/O). The function is only available as fastcall function, so it may only be used in presence of a prototype. +The order in which the two bytes are read is undefined. - -, +, +, +, + + + -#define FILENAME "helloworld" -if (remove (FILENAME) == 0) { - printf ("We deleted %s successfully\n", FILENAME); -} else { - printf ("There was a problem deleting %s\n", FILENAME); -} +perror

+ + + +/ +/ with an argument of +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, + + -reset_brk

+pokebsys

-/ -/, +/ + -Since / installs an exit handler, -it is not strictly necessary to call this function as part of the cleanup when -the program ends. +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, +, +, +, + + + + + +pokewsys

+ + + +/, +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. +The order in which the two bytes are written is undefined. + +, +, +, +, + + + + + +qsort

+ + + +/ + +If there are multiple members with the same key, the order after calling +the function is undefined. +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + + + + + + +raise

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, + + + + + +rand

+ + + +/ + +Without using , always the same +flow of numbers is generated. +On startup, the function behaves as if +had been used with an argument of 1. + +, + + + + + +realloc

+ + + +/ + +The part of the memory block that is returned will have its contents +unchanged. +This function is somewhat dangerous to use. Be careful to save the +pointer you're passing somewhere else, otherwise + + ptr = realloc (ptr, size); + +will loose your only copy of The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, +, +, +, +, +, + + + + + +remove

+ + + +/ + +This function is not available on all cc65 targets (depends on the +availability of file I/O). +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, + + +#include <stdio.h> + +#define FILENAME "helloworld" + +if (remove (FILENAME) == 0) { + printf ("We deleted %s successfully\n", FILENAME); +} else { + printf ("There was a problem deleting %s\n", FILENAME); +} + + + + + +rename

+ + + +/ + +This function is not available on all cc65 targets (depends on the +capabilities of the storage devices). +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + + + +#include <stdio.h> + +#define OLDNAME "textfile.txt" +#define NEWNAME "textfile.bak" + +if (rename (OLDNAME, NEWNAME) == 0) { + printf ("Renamed %s to %s\n", OLDNAME, NEWNAME); +} else { + printf ("Error renaming %s to %s\n", OLDNAME, NEWNAME); +} + + + + + +reset_brk

+ + + +/ + +Since / installs an exit handler, +it is not strictly necessary to call this function as part of the cleanup when +the program ends. + + + + + + +revers

+ + + +/ + +The function may not be supported by the hardware, in which case +the call is ignored. +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + + + + + + +screensize

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, +, +, +, + + + + + +set_brk

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. +The stub saves the zero page registers used by the C runtime and switches +to a small break handler stack. This means that it is safe to execute C code, +even if C code was interrupted. Be careful however not to use too many local +variables, and do not enable stack checks for the handler function or any other +function called from it. +The Since / as part of the cleanup when +the program terminates. + + + + + + +setjmp

+ + + +/ +/ function and +returns zero. + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + + + + + + +setlocale

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. +cc65 supports only the "C" locale, so calling this function to set a +different locale has no effect. + +, + + + + + + +signal

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, + + + + + +sleep

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + + + + + +slow

+ + + +/ + +The function is specific to the C128. + +, +, + + + + + +srand

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, + + + + + +strcasecmp

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. +The function is not available in strict ANSI mode. + +, +, +, + + + + + + +strcat

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. +If copying takes place between objects that overlap, the behaviour +is undefined. + +, +, + + + + + +strchr

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, + + + + + +strcmp

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, +, +, + + + + + + +strcoll

+ + + +/ +/. It returns a value that is less than zero if +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, +, +, +, + + + + + + +strcpy

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. +If copying takes place between objects that overlap, the behaviour +is undefined. + +, +, + + +#include <string.h> + +static char hello[14]; + +strcpy (hello, "Hello world!\n"); + + + + + +strcspn

+ + + +/ +not consist of +characters contained in the string +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, +, + + + + + +strdup

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. +It is up to the caller to free the allocated memory block. + +, + + + + + +strerror

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. +While the return type of the function is a + + + + + +stricmp

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. +The function is not available in strict ANSI mode. + +, +, +, + + + + + + +strlen

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. +When compiling with + + + + + +strlower

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. +The function prototype is unavailable when compiling in strict ANSI mode. +An alias name for this function is +, + + + + + +strlwr

+ + +See + + +strncat

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. +If copying takes place between objects that overlap, the behaviour +is undefined. + +, +, + + + + + +strncmp

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, +, +, + + + + + + +strncpy

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. If there is no null byte in the first If copying takes place between objects that overlap, the behaviour is +undefined. + +, +, + + +#include + +static char hello[6]; + +strcpy (hello, "Hello world!\n", sizeof (hello) - 1); +hello[5] = '\0'; + + + + + +strrchr

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + + + + + + +strspn

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, + + + + + +strstr

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, + + + + + +strtok

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, + + + + + +strxfrm

+ + + +/ + +If The function is only available as fastcall function, so it may only +be used in presence of a prototype. +Since cc65 doesn't support different charcter sets, . + +, +, +, + + + + +strupper

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. +The function prototype is unavailable when compiling in strict ANSI mode. +An alias name for this function is + + + + + + +strupr

+ + +See + + +textcolor

+ + + +/ + +Text colors are system dependent. The function may have no effect +on systems where the text color cannot be changed. +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, + + + + + +tgi_arc

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. +The function behaves unexpectedly or may crash if the angles are out +of range. + +, +, +, +, + + +/* Draw the upper half of an ellipse */ +tgi_setcolor(TGI_COLOR_BLUE); +tgi_arc (50, 50, 40, 20, 0, 180); + + + + + +tgi_bar

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + + +tgi_setcolor(TGI_COLOR_GREEN); +tgi_bar(10, 10, 100, 60); + + + + + +tgi_circle

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, +, +, +, + + +tgi_setcolor(TGI_COLOR_BLACK); +tgi_circle(50, 40, 40); + + + + + +tgi_clear

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + + + + + +tgi_done

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + + + + + +tgi_ellipse

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + +, +, +, +, + + +tgi_setcolor(TGI_COLOR_RED); +tgi_ellipse (50, 40, 40, 20); + + + + + +tgi_getcolor

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + + +color = tgi_getcolor(); + + + + +tgi_getcolorcount

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + + +if (tgi_getcolorcount() == 2) { + printf("Only monochrome graphics is supported\n"); +} + + + + +tgi_getdefpalette

+ + + +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + - -revers

+tgi_geterror

-/ -/ + -The function may not be supported by the hardware, in which case -the call is ignored. The function is only available as fastcall function, so it may only be used in presence of a prototype. + - -screensize

+tgi_geterrormsg

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. , -, -, -, - + - -set_brk

+tgi_getmaxcolor

-/ - +/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. -The stub saves the zero page registers used by the C runtime and switches -to a small break handler stack. This means that it is safe to execute C code, -even if C code was interrupted. Be careful however not to use too many local -variables, and do not enable stack checks for the handler function or any other -function called from it. -The Since / as part of the cleanup when -the program terminates. + - -setjmp

+tgi_getmaxx

-/ -/ function and -returns zero. - +/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. - - + - -setlocale

+tgi_getmaxy

-/ - +/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. -cc65 supports only the "C" locale, so calling this function to set a -different locale has no effect. -, - + - -signal

+tgi_getpagecount

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. -, - +, + - -sleep

+tgi_getpalette

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. - - -slow

+tgi_getpixel

-/ -/ + -The function is specific to the C128. +The function is only available as fastcall function, so it may only +be used in presence of a prototype. -, - + - -srand

+tgi_getxres

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. -, - + - -strcasecmp

+tgi_getyres

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. -The function is not available in strict ANSI mode. , -, -, - + - -strcat

+tgi_gotoxy

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. -If copying takes place between objects that overlap, the behaviour -is undefined. -, -, - + - -strchr

+tgi_init

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. +/ after -, - - +extern char lynxtgi[]; //Include the driver statically instead of loading it. +tgi_install(&lynxtgi); +tgi_init(); //Set up the default palette and clear the screen. + - -strcmp

+tgi_install

-/ -/ + -The function is only available as fastcall function, so it may only -be used in presence of a prototype. +The function is only available as fastcall function, so it may only be +used in presence of a prototype. -, -, -, - -, +, + + +extern char lynxtgi[]; //Include the driver statically instead of loading it. + +tgi_install(&lynxtgi); +tgi_init(); //Set up the default palette and clear the screen. + -strcoll

+tgi_ioctl

-/ -/. It returns a value that is less than zero if / + The function is only available as fastcall function, so it may only be used in presence of a prototype. +These functions are not easily portable to other cc65 platforms. -, -, -, -, - - +#define tgi_sprite(spr) tgi_ioctl(0, (void*)(spr)) +#define tgi_flip() tgi_ioctl(1, (void*)0) +#define tgi_setbgcolor(bgcol) tgi_ioctl(2, (void*)(bgcol)) +#define tgi_setframerate(rate) tgi_ioctl(3, (void*)(rate)) +#define tgi_busy() tgi_ioctl(4, (void*)0) +#define tgi_updatedisplay() tgi_ioctl(4, (void*)1) +if (!tgi_busy()) { + tgi_sprite(&background); + tgi_setcolor(TGI_COLOR_BLUE); + tgi_outttextxy(20,40,"Hello World"); + tgi_updatedisplay(); +} + -strcpy

+tgi_line

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. -If copying takes place between objects that overlap, the behaviour -is undefined. -, -, - - -#include <string.h> - -static char hello[14]; - -strcpy (hello, "Hello world!\n"); - + -strcspn

+tgi_lineto

-/ -not consist of -characters contained in the string / + The function is only available as fastcall function, so it may only be used in presence of a prototype. -, - + -strdup

+tgi_load

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. -It is up to the caller to free the allocated memory block. -, - + -strerror

+tgi_load_driver

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. -While the return type of the function is a - + -stricmp

+tgi_outtext

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. -The function is not available in strict ANSI mode. , -, -, - + -strlen

+tgi_outtextxy

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. -When compiling with - + -strlower

+tgi_pieslice

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. -The function prototype is unavailable when compiling in strict ANSI mode. -An alias name for this function is The function behaves unexpectedly or may crash if the angles are out +of range. , - -, +, +, +, + + +/* Draw the closed upper half of an ellipse */ +tgi_setcolor(TGI_COLOR_BLUE); +tgi_pieslice (50, 50, 40, 20, 0, 180); + -strlwr

+tgi_setcolor

-See +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + + +tgi_setcolor(TGI_COLOR_BLACK); +tgi_bar(0,0,30,30); +tgi_setcolor(TGI_COLOR_WHITE); +tgi_bar(10,10,20,20); + + - -strncat

+tgi_setdrawpage

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. -If copying takes place between objects that overlap, the behaviour -is undefined. -, -, - - +tgi_setdrawpage(1); +tgi_outtextxy(10, 10, "Hello World"); +tgi_setviewpage(1); // Show page 1 +tgi_setdrawpage(0); +tgi_outtextxy(10, 10, "Creating next frame"); +... +tgi_setviewpage(0); // Show page 0 + - -strncmp

+tgi_setpalette

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. -, -, -, - + - -strncpy

+tgi_setpixel

-/ -/ + The function is only available as fastcall function, so it may only -be used in presence of a prototype. If there is no null byte in the first If copying takes place between objects that overlap, the behaviour is -undefined. +be used in presence of a prototype. -, -, - - -#include - -static char hello[6]; - -strcpy (hello, "Hello world!\n", sizeof (hello) - 1); -hello[5] = '\0'; - + - -strrchr

+tgi_setviewpage

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. - - +tgi_setdrawpage(1); +tgi_outtextxy(10, 10, "Hello World"); +tgi_setviewpage(1); // Show page 1 +tgi_setdrawpage(0); +tgi_outtextxy(10, 10, "Creating next frame"); +... +tgi_setviewpage(0); // Show page 0 + - -strspn

+tgi_textheight

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. -, - + - -strstr

+tgi_textstyle

-/ -/ + The function is only available as fastcall function, so it may only be used in presence of a prototype. -, - + - -strupper

+tgi_textwidth

-/ -/ +/ +/ The function is only available as fastcall function, so it may only be used in presence of a prototype. -The function prototype is unavailable when compiling in strict ANSI mode. -An alias name for this function is - + - -strupr

+tgi_uninstall

-See +/ + +The function is only available as fastcall function, so it may only +be used in presence of a prototype. + + - -textcolor

+tgi_unload

-/ -/ + -Text colors are system dependent. The function may have no effect -on systems where the text color cannot be changed. The function is only available as fastcall function, so it may only be used in presence of a prototype. , - + - time

@@ -4303,11 +5804,14 @@ old mode (cursor position, color and so on) are saved and restored together with the mode. The function is specific to the C128. +This function is deprecated. Please use instead! , - +, + @@ -4413,6 +5917,7 @@ to the ISO C standard. #include <stdio.h> #include <unistd.h> @@ -4423,6 +5928,7 @@ if (unlink (FILENAME) == 0) { } else { printf ("There was a problem deleting %s\n", FILENAME); } + @@ -4484,6 +5990,34 @@ used in presence of a prototype. +videomode

+ + + +, +/ + +The function is specific to the C128 and enhanced Apple //e. +This function replaces . +The function is only available as fastcall function, so it may only be +used in presence of a prototype. + +, +, + + + + + wherex

@@ -4525,5 +6059,3 @@ cursor. Zero is returned for the uppermost screen position. - -