From: cuz Date: Tue, 26 Nov 2002 23:34:22 +0000 (+0000) Subject: Added some string functions X-Git-Tag: V2.12.0~1987 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cb78d2c1bdfab22a4012a3d02f56e7c4340ec81b;p=cc65 Added some string functions git-svn-id: svn://svn.cc65.org/cc65/trunk@1660 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/doc/funcref.sgml b/doc/funcref.sgml index 3786f4e51..4d637dd12 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -131,6 +131,18 @@ function. +

+ + + + + + + + + + + Alphabetical function reference

@@ -150,7 +162,7 @@ to unexpected results if no debugger is present. , - @@ -171,7 +183,7 @@ unexpected results. , - @@ -191,7 +203,7 @@ already enabled (the default). , - @@ -209,7 +221,7 @@ terminates the program with an exit code of 3. , - @@ -229,7 +241,7 @@ on stderr and aborts the program. , - @@ -253,7 +265,7 @@ function, so it may only be used in presence of a prototype. , - @@ -275,7 +287,7 @@ prototype. , - @@ -297,7 +309,7 @@ prototype. , - @@ -317,7 +329,7 @@ only be used in presence of a prototype. , - @@ -339,7 +351,7 @@ only be used in presence of a prototype. , - @@ -361,7 +373,7 @@ key from this buffer and wait only if the buffer is empty. , - @@ -384,7 +396,7 @@ as fastcall function, so it may only be used in presence of a prototype. , , - @@ -407,7 +419,7 @@ as fastcall function, so it may only be used in presence of a prototype. , , - @@ -425,7 +437,7 @@ the upper left corner. , - @@ -446,7 +458,7 @@ be used in presence of a prototype. , - @@ -469,7 +481,7 @@ as fastcall function, so it may only be used in presence of a prototype. , , - @@ -492,7 +504,7 @@ as fastcall function, so it may only be used in presence of a prototype. , , - @@ -517,7 +529,7 @@ program return code can be evaluated or is ignored. , - @@ -541,7 +553,7 @@ only be used in presence of a prototype. Invalid values for the X position , , - @@ -565,7 +577,7 @@ coordinates (out of screen positions) may lead to undefined behaviour. , , - @@ -589,7 +601,7 @@ only be used in presence of a prototype. Invalid values for the Y position , , - @@ -624,7 +636,7 @@ may only be used in presence of a prototype. , , - @@ -658,7 +670,7 @@ may only be used in presence of a prototype. , , - @@ -693,7 +705,7 @@ may only be used in presence of a prototype. , , - @@ -728,7 +740,7 @@ may only be used in presence of a prototype. , , - @@ -763,7 +775,7 @@ may only be used in presence of a prototype. , , - @@ -797,7 +809,7 @@ may only be used in presence of a prototype. , , - @@ -833,7 +845,7 @@ may only be used in presence of a prototype. , , - @@ -868,7 +880,7 @@ may only be used in presence of a prototype. , , - @@ -903,7 +915,7 @@ may only be used in presence of a prototype. , , - @@ -939,7 +951,7 @@ may only be used in presence of a prototype. , , - @@ -976,7 +988,7 @@ may only be used in presence of a prototype. , , - @@ -1011,7 +1023,7 @@ may only be used in presence of a prototype. , , - @@ -1046,7 +1058,7 @@ may only be used in presence of a prototype. , , - @@ -1066,7 +1078,7 @@ do), the function is rather useless. , - @@ -1087,7 +1099,7 @@ may only be used in presence of a prototype. - @@ -1109,7 +1121,156 @@ be used in presence of a prototype. , , - + + + +strcat

+ + + +/ + + + + + + +strchr

+ + + +/ + + + + + +strcpy

+ + + +/ + + + +#include + +static char hello[14]; + +strcpy (hello, "Hello world!\n"); + + + + + +strlen

+ + + +/ + + + + + +strncpy

+ + + +/ + +If the array pointed to by +The function will always return + + +#include + +static char hello[6]; + +strcpy (hello, "Hello world!\n", sizeof (hello) - 1); +hello[5] = '\0'; + + + + + +strrchr

+ + + +/ + + @@ -1132,7 +1293,7 @@ prototype. , - @@ -1153,7 +1314,7 @@ only be used in presence of a prototype. , , - @@ -1174,7 +1335,7 @@ only be used in presence of a prototype. , , - @@ -1194,7 +1355,7 @@ cursor. Zero is returned for the leftmost screen position. , , - @@ -1214,7 +1375,7 @@ cursor. Zero is returned for the uppermost screen position. , , -