strtok.h File Reference

#include <lucid/list.h>

Include dependency graph for strtok.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  strtok_t

Defines

#define strtok_for_each(st, p)   list_for_each_entry(p, &(st->list), list)
 interate through tokens

Functions

strtok_tstrtok_init_argv (strtok_t *st, char *argv[], int argc, int empty)
 initialize string tokenizer from argument vector
strtok_tstrtok_init_str (strtok_t *st, const char *str, char *delim, int empty)
 initialize string tokenizer from character array
void strtok_free (strtok_t *st)
 deallocate string tokenizer
int strtok_count (strtok_t *st)
 count number of tokens
int strtok_append (strtok_t *st, const char *token)
 append a token
void strtok_delete (strtok_t *st, const char *token)
 delete one or more tokens
char * strtok_prev (strtok_t **st)
 Go to the previous token.
char * strtok_next (strtok_t **st)
 Go to the previous token.
int strtok_toargv (strtok_t *st, char **argv)
 convert string tokenizer to argument vector
int strtok_tostr (strtok_t *st, char **str, char *delim)
 convert string tokenizer to character array


Generated on Tue Jun 19 20:38:42 2007 for lucid by  doxygen 1.5.2