Lines Matching refs:fields
420 const char *fields[5];
452 /* Extract the fields from the line. */
454 nfields = split(buf, fields, sizeof(fields) / sizeof(fields[0]),
469 if (strcmp(fields[0], "auth") != 0 &&
470 strcmp(fields[0], "acct") != 0) {
479 fields[i] = fields[i - 1];
480 fields[0] = "auth";
488 type = fields[0];
489 host = fields[1];
490 secret = fields[2];
491 timeout_str = fields[3];
492 maxtries_str = fields[4];
499 /* Parse and validate the fields. */
977 * Destructively split a string into fields separated by white space.
979 * end of the string. Fields may be quoted with `"'. Inside quoted
982 * Pointers to up to the first maxfields fields are stored in the fields
983 * array. Missing fields get NULL pointers.
985 * The return value is the actual number of fields parsed, and is always
992 split(char *str, const char *fields[], size_t maxfields, char *msg,
1000 fields[i] = NULL;
1008 snprintf(msg, msglen, "line has too many fields");
1015 fields[i] = dst;
1035 if (*fields[i] == '\0') {
1046 fields[i] = p;