Overview
-This file contains a description of the library routines available for the
-cc65 C compiler. It is not complete in some areas, so if you miss something,
-have a look into the header files. All functions, that are not defined by the
-ISO C standard have a short comment in the headers, explaining their use.
+This file contains a short overview of the libraries available for the cc65 C
+compiler. Please have a look at the for a list function by function. Since the function reference is
+not complete (I'm working on that) it may happen that you don't find a
+specific function. In this case, have a look into the header files. All
+functions, that are not defined by the ISO C standard have a short comment in
+the headers, explaining their use.
@@ -35,66 +38,61 @@ I will not go into detail about the ISO functions. If a function is not
mentioned here explicitly, expect it to be available and to behave as defined
in the C standard.
-Functions that are NOT available:
+Functions that are
-
- - ftell/fseek/fgetpos/fsetpos
-
-
- tmpfile/tmpnam
-
-
- The scanf family of functions
-
-
- time/asctime/ctime/difftime/asctime/gmtime/localtime/mktime/strftime
-
-
- system
-
+
- tmpfile/tmpnam
+
+ - The
+
- system
+
- All functions that handle floating point numbers in some manner.
-
-
- The div and ldiv functions (because cc65 is not able to return
- structs).
-
+
+ - The
- All functions handling wide character strings.
-
-
- Signals and all related functions (having SIGSEGV would be cool:-)
-
-
- rename/remove/rewind
-
-
- setbuf/setvbuf/ungetc
-
+
+ - Signals and all related functions (having
+
- setbuf/setvbuf/ungetc
+Functions not available on all supported systems:
+
+
+
- fopen/fread/fwrite/fclose/fputs/fgets/fscanf: The functions
+ are built on open/read/write/close. These latter functions are not available
+ on all systems.
+
+ - ftell/fseek/fgetpos/fsetpos: Support depends on the
+ capabilities of the target machine.
+
+ - rename/remove/rewind: Support depends on the capabilities of
+ the target machine.
+
+ - time: Since many of the supported systems do not have a real
+ time clock, which means that the
+
+
Functions that are limited in any way:
-
-
- fopen/fread/fwrite/fclose/fputs/fgets/fscanf....
-
- These functions are built on open/read/write/close. Neither of these low
- level functions is currently available for the supported systems, and so,
- fopen and friends do not work. However, the functions exist and are tested
- to some degree under the ACE operating systems (which is no longer
- supported).
-
-
-
- strcspn/strpbrk/strspn
-
- These functions have a length limitation of 256 for the second string
- argument. Since this string gives a character set, and there are only 256
- distinct characters, this shouldn't be a problem.
-
-
-
- getenv
-
- Since there is no such thing as an environment on all supported systems, the
- getenv function will always return a NULL pointer.
-
-
-
- locale
-
- There is no other locale than the "C" locale. The native locale is identical
- to the "C" locale.
-
+
- strcspn/strpbrk/strspn: These functions have a length
+ limitation of 256 for the second string argument. Since this string gives a
+ character set, and there are only 256 distinct characters, this shouldn't be
+ a problem.
+
+ - getenv: Since there is no such thing as an environment on all
+ supported systems, the
+
- locale: There is no other locale than the "C" locale. The
+ native locale is identical to the "C" locale.
@@ -102,17 +100,15 @@ In addition to these limitations, some more functions are limited if inlined
versions are requested by using -Os:
-
- - The strlen function only works for strings with a maximum length of
- 255 characters.
-
-
- The isxxx character classification functions from The
+
- The
@@ -167,15 +163,16 @@ This has some disadvantages, but on the other side it's fast and reasonably
portable. conio implementations exist for the following targets:
+
- apple2
- atari
- c16 (works also for the c116 with up to 32K memory)
- c64
- c128
-
- plus4
+
- plus4 (or expanded c16/c116)
- cbm510 (40 column video)
- cbm610 (all CBM series-II computers with 80 column video)
- pet (all CBM PET systems except the 2001)
-
- apple2
+
- vic20
The conio.h header file does also include the system specific header files
@@ -221,7 +218,7 @@ name="uz@cc65.org">).
Copyright
This C runtime library implementation for the cc65 compiler is (C)
-Copyright 1998-2001 Ullrich von Bassewitz. For usage of the binaries
+Copyright 1998-2002 Ullrich von Bassewitz. For usage of the binaries
and/or sources the following conditions do apply:
This software is provided 'as-is', without any expressed or implied