This header provides string functions not provided by the ANSI/ISO standard libraries. These include functions to deal with CR-terminated strings, as are sometimes used by the Wimp.
This is an exact equivalent of strlen, but recognising any character with an ASCII code below 32 (ie. any control code) as a terminator. This makes it suitable for use with CR-terminated strings as are sometimes used by RISC OS.
This is an exact equivalent of strcmp, but recognising any character with an ASCII code below 32 (ie. any control code) as a terminator. This makes it suitable for use with CR-terminated strings as are sometimes used by RISC OS.
This is an exact equivalent of strcat, but recognising any character with an ASCII code below 32 (ie. any control code) as a terminator. This makes it suitable for use with CR-terminated strings as are sometimes used by RISC OS.
The resulting string will be zero-terminated.
This is an exact equivalent of strcpy, but recognising any character with an ASCII code below 32 (ie. any control code) as a terminator. This makes it suitable for use with CR-terminated strings as are sometimes used by RISC OS.
The resulting string will be zero-terminated.
This is an exact equivalent of strncpy, but recognising any character with an ASCII code below 32 (ie. any control code) as a terminator. This makes it suitable for use with CR-terminated strings as are sometimes used by RISC OS.
The resulting string will be zero-terminated if it is shorter than 'n'.
This returns a pointer to the "leaf" part of the given filepath, ie. the first character after the last '.' in 'path'. If there is no '.' in 'path', it returns a pointer to the start of 'path'.
This is a case-insensitive version of the strcmp function.
This is a case-insensitive version of the strncmp function.
This is a case-insensitive strcmp which accepts any control character (character with ASCII code below 32) as a terminator, not just zero.
This is a case-insensitive strncmp which accepts any control character (character with ASCII code below 32) as a terminator, not just zero.
This allocates memory (with malloc) for a copy of the given string, and copies it to the new block. It returns a pointer to the new string, or NULL if it runs out of memory.
This alters the given string to make it CR-terminated rather than zero terminated. 'maxlen' if the number of characters to look for the nul terminator before giving up (in which case it is terminated at the 'max_len'th character).
This alters the given string to make it zero-terminated rather than CR terminated. 'maxlen' if the number of characters to look for the CR terminator before giving up (in which case it is terminated at the 'max_len'th character).
This takes a number (which should be in the range 0 to 15) and converts it to the equivalent hexademical character ('0'-'F'). If 'n' is outside the convertable range, '?' is returned.
This takes a hexadecimal digit (ie. '0'-'9', 'A'-'F') and returns the integer value it represents. If the character is not a valid haxadecimal digit, -1 is returned.
#define LeafName(str) Str_LeafName(str)
Macro: char *LeafName(char *path);
This returns a pointer to the "leaf" part of the given filepath, ie. the first character after the last '.' in 'path'. If there is no '.' in 'path', it returns a pointer to the start of 'path'.
#define strincmp(s1, s2, n) strnicmp(s1, s2, n)
This is an alternate name for "strnicmp", for those who prefer their 'i's before their 'n's.
#define strincmpcr(s1, s2, n) strnicmpcr(s1, s2, n)