2018-01-28 18:30:49 +00:00
|
|
|
/*********************************************
|
|
|
|
* string - String Handling Routines for C02 *
|
|
|
|
*********************************************/
|
|
|
|
|
|
|
|
/* Concatenate Destination String to Source String *
|
|
|
|
* Args: &s - Source string *
|
2021-09-21 00:54:24 +00:00
|
|
|
* Sets: Destination string specified by setdst() *
|
2018-01-28 18:30:49 +00:00
|
|
|
* Returns: Total Length of concatenated string */
|
|
|
|
char strcat();
|
|
|
|
|
2021-09-21 00:54:24 +00:00
|
|
|
/* Find Character in String *
|
|
|
|
* Args: c - Character to find *
|
|
|
|
* s - String to search *
|
|
|
|
* Returns: Position in s *
|
|
|
|
* $FF if not found */
|
|
|
|
char strchr();
|
|
|
|
|
2018-01-28 18:30:49 +00:00
|
|
|
/* Compare Destination String against Source String *
|
|
|
|
* Args: &s - Source string *
|
2021-09-21 00:54:24 +00:00
|
|
|
* Uses: Destination string specified by setdst() *
|
|
|
|
* Returns: -1 = Destination < Source *
|
2018-01-28 18:30:49 +00:00
|
|
|
* 0 = Destination = Source *
|
|
|
|
* 1 = Destination > Source */
|
|
|
|
char strcmp();
|
|
|
|
|
2021-09-21 00:54:24 +00:00
|
|
|
/* Count Character in String *
|
|
|
|
* Args: c - Character to count *
|
|
|
|
* s - String to search *
|
|
|
|
* Returns: Occurences */
|
|
|
|
char strcnt();
|
|
|
|
|
2018-01-28 18:30:49 +00:00
|
|
|
/* Copy Source String to Destination String *
|
|
|
|
* Args: &s - Source string *
|
2021-09-21 00:54:24 +00:00
|
|
|
* Sets: Destination string specified by setdst() *
|
2018-01-28 18:30:49 +00:00
|
|
|
* 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 *
|
2021-09-21 00:54:24 +00:00
|
|
|
* Uses: Destination string specified by setdst() *
|
2018-01-28 18:30:49 +00:00
|
|
|
* Returns: Number of characters copied */
|
|
|
|
char strcut();
|
|
|
|
|
2021-09-21 00:54:24 +00:00
|
|
|
/* Read Next Entry from String List *
|
|
|
|
* Args: &d - Destination string *
|
|
|
|
* Returns: char n - Number of characters in entry *
|
|
|
|
* int p - New value or srcptr */
|
|
|
|
char strget();
|
|
|
|
|
|
|
|
/* Get Length of String *
|
|
|
|
* Args: s - string *
|
|
|
|
* Returns: Length of string */
|
|
|
|
char strlen();
|
|
|
|
|
|
|
|
/* Find Last of Character in String *
|
|
|
|
* Args: c - Character to find *
|
|
|
|
* s - String to search *
|
|
|
|
* Returns: c in s *
|
|
|
|
* $FF if not found */
|
|
|
|
char strrch();
|
|
|
|
|
|
|
|
char strstr();
|
2018-01-28 18:30:49 +00:00
|
|
|
/* Find String in String *
|
|
|
|
* Args: &s - String to Find *
|
2021-09-21 00:54:24 +00:00
|
|
|
* Uses: String to search specified by setdst() *
|
|
|
|
* Sets: setdst() pointer to position of string *
|
2018-01-28 18:30:49 +00:00
|
|
|
* End of string if not found *
|
|
|
|
* Returns: Position of s in Destination string *
|
|
|
|
* $FF if not found */
|
|
|
|
char strstr();
|
|
|
|
|