str_util - String Manipulation Functions
strDestring() - resolves quote-delimited elements in a string.
strDetab() - converts tabs in a string to blanks.
strEnv() - translates environment variable references in
a string.
strEtoA() - converts a string of EBCDIC characters to ASCII.
strInsert() - inserts a substring in a string.
strMatch() - a string compare function that handles
abbreviations.
strRemove() - removes a substring from a string.
strToLower() - converts a string to all lower-case.
strToUpper() - converts a string to all upper-case.
strTrim() - trims trailing tabs and spaces from a string.
memdup() - duplicates a memory block.
stpcpy() - copies a string, points to the end.
strlcat() - concatenates two strings, limited by length.
strlcpy() - copies a string, limited by length.
strcasecmp() - compares two strings, ignoring case.
strncasecmp() - compares two strings for a specified length,
ignoring case.
strnchr() - finds the first occurrence of a character in a
length-limited string.
strncpym() - copies a length-limited string to a sized buffer.
strdup() - duplicates a NUL-terminated string.
strndup() - duplicates a string of a specified length.
strrchr() - finds the last occurrence of a character in a string.
strspn() - skips characters in a set of characters.
strcspn() - skips characters not in a set of characters.
strtok() - extracts tokens from a string.
str_util.c
str_util.h
(See libgpl for the
complete source, including support routines and build files.)