1
0
mirror of https://github.com/RevCurtisP/C02.git synced 2024-11-25 21:33:44 +00:00
C02/include/string.h02
2020-10-11 14:45:01 -04:00

59 lines
2.0 KiB
Plaintext

/*********************************************
* string - String Handling Routines for C02 *
*********************************************/
/* Find Character in String *
* Args: c - Character to find *
* &s - String to search *
* Returns: c in s *
* $FF if not found */
char strchr();
/* Get Length of String *
* Args: s - string *
* Returns: Length of string */
char strlen();
/* Sets Destination String for *
* functions that use two strings *
* Args: &s - Destination string */
void strdst();
/* Concatenate Destination String to Source String *
* Args: &s - Source string *
* Sets: Destination string specified by strdst() *
* Returns: Total Length of concatenated string */
char strcat();
/* Compare Destination String against Source String *
* Args: &s - Source string *
* Uses: Destination string specified by strdst() *
* Returns: Result of comparison *
* -1 = Destination < Source *
* 0 = Destination = Source *
* 1 = Destination > Source */
char strcmp();
/* Copy Source String to Destination String *
* Args: &s - Source string *
* Sets: Destination string specified by strdst() *
* Returns: Number of characters copied */
char strcpy();
/* Copy Part of Source String to Destination String *
* Args: n - Starting point in source string *
* &s - Source string *
* Sets: Destination string specified by strdst() *
* Returns: Number of characters copied */
char strcut();
/* Find String in String *
* Args: &s - String to Find *
* Uses: String to search specified by strdst() *
* Sets: strdst() pointer to position of string *
* End of string if not found *
* Returns: Position of s in Destination string *
* $FF if not found */
char strstr();