Lines Matching defs:string
42 #include <string.h>
49 parse_numeric(const char *string, int *rv)
55 value = strtol(string, &end, 0);
56 if ((string[0] == '\0') || (*end != '\0'))
67 parse_af(const char *string, int *afp)
70 return parse_numeric_tabular(string, afp, address_families,
75 parse_protocol(const char *string, int *protop)
79 if (parse_numeric(string, protop))
82 protoent = getprotobyname(string);
91 parse_socktype(const char *string, int *typep)
94 return parse_numeric_tabular(string, typep, socket_types,
99 parse_numeric_tabular(const char *string, int *valuep,
105 if (parse_numeric(string, valuep))
109 if ((table[i] != NULL) && (strcmp(string, table[i]) == 0)) {