Added missing documentation of header
This commit is contained in:
185
doc/funcref.sgml
185
doc/funcref.sgml
@@ -4,7 +4,7 @@
|
|||||||
<title>cc65 function reference
|
<title>cc65 function reference
|
||||||
<author><url url="mailto:uz@cc65.org" name="Ullrich von Bassewitz">,<newline>
|
<author><url url="mailto:uz@cc65.org" name="Ullrich von Bassewitz">,<newline>
|
||||||
<url url="mailto:greg.king5@verizon.net" name="Greg King">
|
<url url="mailto:greg.king5@verizon.net" name="Greg King">
|
||||||
<date>2017-12-09
|
<date>2018-02-06
|
||||||
|
|
||||||
<abstract>
|
<abstract>
|
||||||
cc65 is a C compiler for 6502 based systems. This function reference describes
|
cc65 is a C compiler for 6502 based systems. This function reference describes
|
||||||
@@ -293,6 +293,16 @@ function.
|
|||||||
(incomplete)
|
(incomplete)
|
||||||
|
|
||||||
|
|
||||||
|
<sect1><tt/device.h/<label id="device.h"><p>
|
||||||
|
|
||||||
|
<itemize>
|
||||||
|
<item><ref id="getcurrentdevice" name="getcurrentdevice">
|
||||||
|
<item><ref id="getdevicedir" name="getdevicedir">
|
||||||
|
<item><ref id="getfirstdevice" name="getfirstdevice">
|
||||||
|
<item><ref id="getnextdevice" name="getnextdevice">
|
||||||
|
</itemize>
|
||||||
|
|
||||||
|
|
||||||
<sect1><tt/dio.h/<label id="dio.h"><p>
|
<sect1><tt/dio.h/<label id="dio.h"><p>
|
||||||
|
|
||||||
<url url="dio.html" name="Low-level disk I/O API">.
|
<url url="dio.html" name="Low-level disk I/O API">.
|
||||||
@@ -313,8 +323,6 @@ function.
|
|||||||
<item><ref id="telldir" name="telldir">
|
<item><ref id="telldir" name="telldir">
|
||||||
</itemize>
|
</itemize>
|
||||||
|
|
||||||
(incomplete)
|
|
||||||
|
|
||||||
|
|
||||||
<sect1><tt/em.h/<label id="em.h"><p>
|
<sect1><tt/em.h/<label id="em.h"><p>
|
||||||
|
|
||||||
@@ -661,9 +669,11 @@ communication.
|
|||||||
<item><ref id="strlen" name="strlen">
|
<item><ref id="strlen" name="strlen">
|
||||||
<item><ref id="strlower" name="strlower">
|
<item><ref id="strlower" name="strlower">
|
||||||
<item><ref id="strlwr" name="strlwr">
|
<item><ref id="strlwr" name="strlwr">
|
||||||
|
<item><ref id="strncasecmp" name="strncasecmp">
|
||||||
<item><ref id="strncat" name="strncat">
|
<item><ref id="strncat" name="strncat">
|
||||||
<item><ref id="strncmp" name="strncmp">
|
<item><ref id="strncmp" name="strncmp">
|
||||||
<item><ref id="strncpy" name="strncpy">
|
<item><ref id="strncpy" name="strncpy">
|
||||||
|
<item><ref id="strnicmp" name="strnicmp">
|
||||||
<item><ref id="strqtok" name="strqtok">
|
<item><ref id="strqtok" name="strqtok">
|
||||||
<item><ref id="strrchr" name="strrchr">
|
<item><ref id="strrchr" name="strrchr">
|
||||||
<item><ref id="strspn" name="strspn">
|
<item><ref id="strspn" name="strspn">
|
||||||
@@ -674,8 +684,6 @@ communication.
|
|||||||
<item><ref id="strupr" name="strupr">
|
<item><ref id="strupr" name="strupr">
|
||||||
</itemize>
|
</itemize>
|
||||||
|
|
||||||
(incomplete)
|
|
||||||
|
|
||||||
|
|
||||||
<sect1><tt/telestrat.h/<label id="telestrat.h"><p>
|
<sect1><tt/telestrat.h/<label id="telestrat.h"><p>
|
||||||
|
|
||||||
@@ -2930,9 +2938,9 @@ exits.
|
|||||||
<tag/Availability/cc65
|
<tag/Availability/cc65
|
||||||
<tag/Example/<verb>
|
<tag/Example/<verb>
|
||||||
/* Hello World */
|
/* Hello World */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <cc65.h>
|
#include <cc65.h>
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
printf("Hello World\n");
|
printf("Hello World\n");
|
||||||
@@ -3450,6 +3458,111 @@ returns one of the constants<itemize>
|
|||||||
</quote>
|
</quote>
|
||||||
|
|
||||||
|
|
||||||
|
<sect1>getcurrentdevice<label id="getcurrentdevice"><p>
|
||||||
|
|
||||||
|
<quote>
|
||||||
|
<descrip>
|
||||||
|
<tag/Function/Get current device.
|
||||||
|
<tag/Header/<tt/<ref id="device.h" name="device.h">/
|
||||||
|
<tag/Declaration/<tt/unsigned char getcurrentdevice (void);/
|
||||||
|
<tag/Description/The function returns the current device.
|
||||||
|
<tag/Notes/<itemize>
|
||||||
|
<item>
|
||||||
|
</itemize>
|
||||||
|
<tag/Availability/cc65
|
||||||
|
<tag/See also/
|
||||||
|
<ref id="getdevicedir" name="getdevicedir">,
|
||||||
|
<ref id="getfirstdevice" name="getfirstdevice">,
|
||||||
|
<ref id="getnextdevice" name="getnextdevice">
|
||||||
|
<tag/Example/<verb>
|
||||||
|
puts (getdevicedir (getcurrentdevice (), buf, sizeof buf));
|
||||||
|
</verb>
|
||||||
|
</descrip>
|
||||||
|
</quote>
|
||||||
|
|
||||||
|
|
||||||
|
<sect1>getdevicedir<label id="getdevicedir"><p>
|
||||||
|
|
||||||
|
<quote>
|
||||||
|
<descrip>
|
||||||
|
<tag/Function/Get device directory.
|
||||||
|
<tag/Header/<tt/<ref id="device.h" name="device.h">/
|
||||||
|
<tag/Declaration/<tt/char* __fastcall__ getdevicedir (unsigned char device, char* buf, size_t size);/
|
||||||
|
<tag/Description/The function returns the current directory of <tt/device/.
|
||||||
|
<tag/Notes/<itemize>
|
||||||
|
<item>The function is only available as fastcall function, so it may only
|
||||||
|
be used in presence of a prototype.
|
||||||
|
</itemize>
|
||||||
|
<tag/Availability/cc65
|
||||||
|
<tag/See also/
|
||||||
|
<ref id="getcwd" name="getcwd">,
|
||||||
|
<ref id="getcurrentdevice" name="getcurrentdevice">,
|
||||||
|
<ref id="getfirstdevice" name="getfirstdevice">,
|
||||||
|
<ref id="getnextdevice" name="getnextdevice">
|
||||||
|
<tag/Example/<verb>
|
||||||
|
puts (getdevicedir (getcurrentdevice (), buf, sizeof buf));
|
||||||
|
</verb>
|
||||||
|
</descrip>
|
||||||
|
</quote>
|
||||||
|
|
||||||
|
|
||||||
|
<sect1>getfirstdevice<label id="getfirstdevice"><p>
|
||||||
|
|
||||||
|
<quote>
|
||||||
|
<descrip>
|
||||||
|
<tag/Function/Get first device.
|
||||||
|
<tag/Header/<tt/<ref id="device.h" name="device.h">/
|
||||||
|
<tag/Declaration/<tt/unsigned char getfirstdevice (void);/
|
||||||
|
<tag/Description/The function returns the first device.
|
||||||
|
The value 255 indicates no device.
|
||||||
|
<tag/Notes/<itemize>
|
||||||
|
<item>
|
||||||
|
</itemize>
|
||||||
|
<tag/Availability/cc65
|
||||||
|
<tag/See also/
|
||||||
|
<ref id="getcurrentdevice" name="getcurrentdevice">,
|
||||||
|
<ref id="getdevicedir" name="getdevicedir">,
|
||||||
|
<ref id="getnextdevice" name="getnextdevice">
|
||||||
|
<tag/Example/<verb>
|
||||||
|
unsigned char dev = getfirstdevice ();
|
||||||
|
while (dev != 255) {
|
||||||
|
printf ("%d\n", dev);
|
||||||
|
dev = getnextdevice (dev);
|
||||||
|
}
|
||||||
|
</verb>
|
||||||
|
</descrip>
|
||||||
|
</quote>
|
||||||
|
|
||||||
|
|
||||||
|
<sect1>getnextdevice<label id="getnextdevice"><p>
|
||||||
|
|
||||||
|
<quote>
|
||||||
|
<descrip>
|
||||||
|
<tag/Function/Get next device.
|
||||||
|
<tag/Header/<tt/<ref id="device.h" name="device.h">/
|
||||||
|
<tag/Declaration/<tt/unsigned char __fastcall__ getnextdevice (unsigned char device);/
|
||||||
|
<tag/Description/The function returns the next device after <tt/device/.
|
||||||
|
The value 255 indicates no further device.
|
||||||
|
<tag/Notes/<itemize>
|
||||||
|
<item>The function is only available as fastcall function, so it may only
|
||||||
|
be used in presence of a prototype.
|
||||||
|
</itemize>
|
||||||
|
<tag/Availability/cc65
|
||||||
|
<tag/See also/
|
||||||
|
<ref id="getcurrentdevice" name="getcurrentdevice">,
|
||||||
|
<ref id="getdevicedir" name="getdevicedir">,
|
||||||
|
<ref id="getfirstdevice" name="getfirstdevice">
|
||||||
|
<tag/Example/<verb>
|
||||||
|
unsigned char dev = getfirstdevice ();
|
||||||
|
while (dev != 255) {
|
||||||
|
printf ("%d\n", dev);
|
||||||
|
dev = getnextdevice (dev);
|
||||||
|
}
|
||||||
|
</verb>
|
||||||
|
</descrip>
|
||||||
|
</quote>
|
||||||
|
|
||||||
|
|
||||||
<sect1>getenv<label id="getenv"><p>
|
<sect1>getenv<label id="getenv"><p>
|
||||||
|
|
||||||
<quote>
|
<quote>
|
||||||
@@ -6284,6 +6397,34 @@ See <tt/strlower/.
|
|||||||
</quote>
|
</quote>
|
||||||
|
|
||||||
|
|
||||||
|
<sect1>strncasecmp<label id="strncasecmp"><p>
|
||||||
|
|
||||||
|
<quote>
|
||||||
|
<descrip>
|
||||||
|
<tag/Function/Compare two strings case insensitive.
|
||||||
|
<tag/Header/<tt/<ref id="string.h" name="string.h">/
|
||||||
|
<tag/Declaration/<tt/int __fastcall__ strncasecmp (const char* s1, const char* s2, size_t count);/
|
||||||
|
<tag/Description/The <tt/strncasecmp/ function compares the two strings passed
|
||||||
|
as parameters without case sensitivity. It returns a value that is less than
|
||||||
|
zero if <tt/s1/ is less than <tt/s2/, zero if <tt/s1/ is the same as <tt/s2/,
|
||||||
|
and a value greater than zero if <tt/s1/ is greater than <tt/s2/.
|
||||||
|
<tag/Notes/<itemize>
|
||||||
|
<item>The function is only available as fastcall function, so it may only
|
||||||
|
be used in presence of a prototype.
|
||||||
|
<item>The function is not available in strict ANSI mode.
|
||||||
|
</itemize>
|
||||||
|
<tag/Availability/cc65
|
||||||
|
<tag/See also/
|
||||||
|
<ref id="strcmp" name="strcmp">,
|
||||||
|
<ref id="strcoll" name="strcoll">,
|
||||||
|
<ref id="stricmp" name="stricmp">,
|
||||||
|
<ref id="strncmp" name="strncmp">,
|
||||||
|
<ref id="strxfrm" name="strxfrm">
|
||||||
|
<tag/Example/None.
|
||||||
|
</descrip>
|
||||||
|
</quote>
|
||||||
|
|
||||||
|
|
||||||
<sect1>strncat<label id="strncat"><p>
|
<sect1>strncat<label id="strncat"><p>
|
||||||
|
|
||||||
<quote>
|
<quote>
|
||||||
@@ -6377,6 +6518,34 @@ strncpy (hello, "Hello world!\n", sizeof hello - 1)[5] = '\0';
|
|||||||
</quote>
|
</quote>
|
||||||
|
|
||||||
|
|
||||||
|
<sect1>strnicmp<label id="strnicmp"><p>
|
||||||
|
|
||||||
|
<quote>
|
||||||
|
<descrip>
|
||||||
|
<tag/Function/Compare two strings case insensitive.
|
||||||
|
<tag/Header/<tt/<ref id="string.h" name="string.h">/
|
||||||
|
<tag/Declaration/<tt/int __fastcall__ strnicmp (const char* s1, const char* s2, size_t count);/
|
||||||
|
<tag/Description/The <tt/strnicmp/ function compares the two strings passed as
|
||||||
|
parameters without case sensitivity. It returns a value that is less than zero
|
||||||
|
if <tt/s1/ is less than <tt/s2/, zero if <tt/s1/ is the same as <tt/s2/, and a
|
||||||
|
value greater than zero if <tt/s1/ is greater than <tt/s2/.
|
||||||
|
<tag/Notes/<itemize>
|
||||||
|
<item>The function is only available as fastcall function, so it may only
|
||||||
|
be used in presence of a prototype.
|
||||||
|
<item>The function is not available in strict ANSI mode.
|
||||||
|
</itemize>
|
||||||
|
<tag/Availability/cc65
|
||||||
|
<tag/See also/
|
||||||
|
<ref id="strcasecmp" name="strcasecmp">,
|
||||||
|
<ref id="strcmp" name="strcmp">,
|
||||||
|
<ref id="strcoll" name="strcoll">,
|
||||||
|
<ref id="strncmp" name="strncmp">,
|
||||||
|
<ref id="strxfrm" name="strxfrm">
|
||||||
|
<tag/Example/None.
|
||||||
|
</descrip>
|
||||||
|
</quote>
|
||||||
|
|
||||||
|
|
||||||
<sect1>strqtok<label id="strqtok"><p>
|
<sect1>strqtok<label id="strqtok"><p>
|
||||||
|
|
||||||
<quote>
|
<quote>
|
||||||
|
|||||||
Reference in New Issue
Block a user