Functions | |
char * | lub_string_dup (const char *string) |
void | lub_string_cat (char **string_ptr, const char *text) |
void | lub_string_catn (char **string_ptr, const char *text, size_t length) |
char * | lub_string_dupn (const char *string, unsigned length) |
const char * | lub_string_suffix (const char *string) |
int | lub_string_nocasecmp (const char *cs, const char *ct) |
const char * | lub_string_nocasestr (const char *cs, const char *ct) |
void | lub_string_free (char *string) |
As a rule of thumb if a function returns "char *" then the calling client becomes responsible for invoking lub_string_free() to release the dynamically allocated memory.
If a "const char *" is returned then the client has no responsiblity for releasing memory.
|
This operation concatinates the specified text onto an existing string.
|
|
This operation concatinates a specified length of some text onto an existing string.
|
|
This operation duplicates the specified string.
|
|
This operation dupicates a specified length of some text into a new string.
|
|
This operation releases the resources associated with a dynamically allocated string.
|
|
This operation compares string cs to string ct in a case insensitive manner.
|
|
This operation performs a case insensitive search for a substring within another string.
|
|
This operation returns a pointer to the last (space separated) word in the specified string.
|