Lines Matching refs:parse
491 /* parse the message, extract rcode, fill result */
921 char* parse, *addr;
971 parse=buf;
972 while(*parse == ' ' || *parse == '\t')
973 parse++;
974 if(strncmp(parse, "nameserver", 10) == 0) {
976 parse += 10; /* skip 'nameserver' */
978 while(*parse == ' ' || *parse == '\t')
979 parse++;
980 addr = parse;
982 while(isxdigit((unsigned char)*parse) || *parse=='.' || *parse==':')
983 parse++;
985 *parse = 0;
1006 char* parse, *addr, *name, *ins;
1046 parse=buf;
1047 while(*parse == ' ' || *parse == '\t')
1048 parse++;
1049 if(*parse == '#')
1052 addr = parse;
1054 while(isxdigit((unsigned char)*parse) || *parse == '.' || *parse == ':')
1055 parse++;
1056 if(*parse == '\n' || *parse == 0)
1058 if(*parse == '%')
1060 if(*parse != ' ' && *parse != '\t') {
1066 *parse++ = 0; /* end delimiter for addr ... */
1068 while(*parse) {
1069 while(*parse == ' ' || *parse == '\t' || *parse=='\n')
1070 parse++;
1071 if(*parse == 0 || *parse == '#')
1074 name = parse;
1075 while('!' <= *parse && *parse <= '~')
1076 parse++;
1077 if(*parse)
1078 *parse++ = 0; /* end delimiter for name */