Lines Matching defs:toks
62 char *p, *line, *token, **toks;
72 if (( toks = (char **)calloc( (size_t) 1, sizeof( char * ))) == NULL ) {
80 if (( toks = (char **)realloc( toks, ( tokcnt + 2 ) *
82 free( (char *)toks );
86 toks[ tokcnt ] = token;
87 toks[ ++tokcnt ] = NULL;
90 if ( tokcnt == 1 && strcasecmp( toks[ 0 ], "END" ) == 0 ) {
92 free_strarray( toks );
93 toks = NULL;
99 if ( toks != NULL ) {
100 free( (char *)toks );
103 *toksp = toks;