compare two tokens by name
#include <suplib/str.h>int tokcmp( const void *tok1, const void *tok2 );
const void *tok1
- Not Documented.
const void *tok2
- Not Documented.
tokcmp
compares two TokListToken
's by name. It is
suitable for use by bsearch
or qsort
.
It returns ‘-1’ if the first token's name is alphabetically first, ‘0’ if they have the same name, and ‘1’ if the first token's name follows the second, alphabetically.
Diab Jerius