Lines Matching defs:str
721 parse_onoff(char *str, uint_t *resp)
723 if (strcasecmp(str, "on") == 0) {
727 if (strcasecmp(str, "off") == 0) {
731 if (strcasecmp(str, "true") == 0) {
735 if (strcasecmp(str, "false") == 0) {
739 if (parse_int(str, resp)) {
750 parse_int(char *str, uint_t *resp)
755 res = strtoul(str, &end, 0);
756 if (end == str)
769 parse_ms(char *str, uint_t *resp)
776 (void) strncpy(str2, str, sizeof (str2));
828 parse_s(char *str, uint_t *resp)
835 (void) strncpy(str2, str, sizeof (str2));
873 char str[BUFSIZ]; /* Local copy for modification */
878 (void) strncpy(str, strin, sizeof (str));
879 str[sizeof (str) - 1] = '\0';
881 cp = strchr(str, '/');
894 if (inet_pton(AF_INET6, str, in6) != 1)
910 parse_date(char *str, uint_t *resp)
925 tm = getdate(str);
928 str, getdate_err);
942 conferr("Date in the past <%s>\n", str);