man tokens_parse () - parse strings and split them into tokens
NAME
tokens_parse, tokens_destroy - parse strings and split them into tokens
LIBRARIES
Abz Library (-labz), Debug Library (-ldebug)
SYNOPSIS
#include <abz/tokens.h> #include <abz/error.h> int tokens_parse(struct tokens *tokens, const char *str"); void tokens_destroy(struct tokens *tokens");
DESCRIPTION
The tokens_parse() function converts a string to a tokens structure which is defined in <abz/tokens.h> as follows:
struct tokens { int argc; char **argv; };
Each argument consists of non-whitespace characters or characters between double quotes ("). The tokens_destroy() function free memory allocated by the tokens_parse() function.
RETURN VALUE
The tokens_parse() function returns 0 if successful or -1 if some error occurred. Call abz_get_error() to see what error occurred.
NOTES
None of the libabz routines are thread-safe. I'm not planning to change this either! For more information, please see http://threading.2038bug.com/
SEE ALSO
AUTHOR
Written by Abraham vd Merwe <abz@blio.com>