Lines Matching defs:string
32 #include <string.h>
82 p_ndigit(char *string, int *value, int n)
87 if (!string)
89 for (ptr = string; *ptr && n > 0; n--, ptr++) {
101 p_date(char *string, int llim, int ulim, int ndig)
106 if (!(ptr = p_ndigit(string, &begin, ndig)))
115 p_eday(char *string, int llim, int ulim)
124 if (*string == BLANK) {
125 string++;
128 copy = string;
144 if (!(ptr = p_ndigit(string, &begin, iday)))
153 /* p_month will parse the string for the month - abbr. form i.e. JAN - DEC */
156 p_month(char *string, char mnabr)
186 copy = string;
197 legit = 1; /* found legitimate string */
202 *string = toupper((unsigned char)*string);
203 string++;
206 return (string);
209 * code than adding in a copy for string and using that
216 p_dlm(char *string, char dchoice)
221 if (! string)
223 (void) sscanf(string, "%1c", &dlm);
225 return (((dlm == DELIM1) || (dlm == DELIM2)) ? string+1 : NULL);
227 return ((dlm == dchoice) ? string + 1 : NULL);
305 int valid = 1; /* time of day string is valid for format */