new_str_copy | str_ident | string_member | which_string_member |
char *new_str_copy(char *str);Return a malloced copy of the given string. To avoid memory leaks, call free() on the copy if you finish referring to it.
BOOL str_ident(char *s, char *t);This function routine checks identity of two strings.
BOOL string_member(char *string, char **strings, int n);Is "string" a member of an array of "strings"?
int which_string_member(char *string, char **strings, int n);If "string" is a member of an array of "strings", return the index; else return -1.
These activities are projects of the Mathematics and Computer Science Division of Argonne National Laboratory.