Lines Matching full:fields
7 - split - divide a string into fields, like awk split()
8 == int split(char *string, char *fields[], int nfields, char *sep);
9 - fields: list is not NULL-terminated
10 - nfields: number of entries available in fields[]
13 int /* number of fields, including overflow */
14 split(char *string, char *fields[], int nfields, char *sep) in split() argument
21 char **fp = fields; in split()
54 /* we have overflowed the fields vector -- just count them */ in split()
84 /* we have overflowed the fields vector -- just count them */ in split()
157 char *fields[MNF]; in main() local
166 (void) split(buf, fields, MNF, argv[2]); in main()
185 char *fields[NF]; in dosplit() local
188 nf = split(string, fields, NF, seps); in dosplit()
189 print(nf, NF, fields); in dosplit()
193 print(int nf, int nfp, char *fields[]) in print() argument
201 printf("\"%s\"%s", fields[fn], (fn+1 < nf) ? ", " : "\n"); in print()
278 char *fields[RNF+1]; in regress() local
286 fields[RNF] = NULL; in regress()
287 nf = split(buf, fields, RNF, tests[n].seps); in regress()
290 printf("split `%s' by `%s' gave %d fields, not %d\n", in regress()
293 } else if (fields[RNF] != NULL) { in regress()
298 f = fields[i]; in regress()
304 i, fields[i], tests[n].fi[i]); in regress()
310 print(nf, RNF, fields); in regress()