Searched defs:tokens (Results 1 - 7 of 7) sorted by relevance

/osnet-11/usr/src/lib/libcmdutils/common/
H A Dstrsplit.c30 * array of pointers to the tokens. The caller must free the array.
38 char **tokens; local
58 if ((tokens = malloc(sizeof (char *) * nr_tokens)) == NULL)
62 tokens[i++] = strtok_r(str, chset, &tmp);
64 while ((tokens[i++] = strtok_r(NULL, chset, &tmp)) != NULL)
67 return (tokens);
/osnet-11/usr/src/lib/libc/port/gen/
H A Dgetsubopt.c44 getsubopt(char **optionsp, char * const *tokens, char **valuep) argument
68 for (i = 0; tokens[i] != NULL; i++) {
69 if ((optlen == strlen(tokens[i])) &&
70 (strncmp(s, tokens[i], optlen) == 0))
/osnet-11/usr/src/lib/libcpc/sparc/
H A Devent_ultra.c148 static char * const tokens[] = { variable
188 uint_t ntokens = sizeof (tokens) / sizeof (tokens[0]) - 1;
195 assert(strcmp(tokens[n], us3_keyvals[n].kv_token) == 0);
198 assert(strcmp(tokens[n], us2_keyvals[n].kv_token) == 0);
245 int idx = getsubopt(&opts, tokens, &value);
258 tokens[idx]);
267 tokens[idx]);
302 idx < sizeof (tokens) / sizeof (tokens[
[all...]
/osnet-11/usr/src/lib/libnsl/dial/
H A Dsysfiles.c91 static char *tokens[NTOKENS], **tokptr; variable
319 * tokenize() continues pulling tokens out of a buffer -- the
328 tokptr = tokens;
331 if (tokptr - tokens >= NTOKENS)
351 for (line = tokens; (line - tokens) < NTOKENS && *line; line++) {
/osnet-11/usr/src/lib/libcpc/i386/
H A Devent_pentium.c214 static char * const tokens[] = { variable
352 uint_t ntokens = sizeof (tokens) / sizeof (tokens[0]) - 1;
359 assert(strcmp(tokens[n], p6_keyvals[n].kv_token) == 0);
362 assert(strcmp(tokens[n], p5_keyvals[n].kv_token) == 0);
409 int idx = getsubopt(&opts, tokens, &value);
422 tokens[idx]);
431 tokens[idx]);
466 idx < sizeof (tokens) / sizeof (tokens[
[all...]
/osnet-11/usr/src/cmd/hal/hald/
H A Ddevice_info.c184 gchar **tokens = NULL; local
191 /* Split up path into ':' tokens */
192 tokens = g_strsplit (path, ":", 64);
195 if (tokens == NULL || tokens[0] == NULL || tokens[1] == NULL) {
205 for (i = 0; tokens[i] != NULL; i++) {
209 /*HAL_INFO (("tokens[%d] = '%s'", i, tokens[i]));*/
217 curtoken = tokens[
[all...]
H A Dutil.c575 gchar **tokens; local
579 tokens = NULL;
584 tokens = g_strsplit_set (line, " \t:", 0);
585 for (i = 0, j = 0; tokens[i] != NULL; i++) {
586 if (strlen (tokens[i]) == 0)
589 strncpy (buf, tokens[i], sizeof (buf));
597 if (tokens != NULL)
598 g_strfreev (tokens);
753 gchar **tokens; local
757 tokens
[all...]

Completed in 69 milliseconds