Lines Matching defs:fmt
72 setmsg(char *msg, size_t msgsize, char *fmt)
74 if ((fmt == NULL) || strcmp(fmt, "%D") == 0)
75 fmt = "%m/%d/%y";
76 (void) snprintf(msg, msgsize, "%s. Format is <%s>.", MESG, fmt);
229 ckdate_err(char *fmt, char *error)
233 if ((fmt != NULL) && (fmtcheck(fmt) == 1))
235 setmsg(defmesg, sizeof (defmesg), fmt);
241 ckdate_hlp(char *fmt, char *help)
245 if ((fmt != NULL) && (fmtcheck(fmt) == 1))
247 setmsg(defmesg, sizeof (defmesg), fmt);
259 fmtcheck(char *fmt)
263 while (*fmt) {
264 switch (*fmt++) {
300 ckdate_val(char *fmt, char *input)
305 if ((fmt != NULL) && (fmtcheck(fmt) == 1))
308 if (fmt == NULL)
309 fmt = DEFAULT;
311 while (*fmt && valid) {
312 if ((*fmt) == '%') {
313 fmt++;
314 switch (*fmt) {
393 fmt++;
394 } /* end of while fmt and valid */
396 if ((*fmt == NULL) && ((input != NULL) && *input != 0)) {
404 ckdate(char *date, char *fmt, char *defstr, char *error, char *help,
414 if ((fmt != NULL) && (fmtcheck(fmt) == 1))
417 setmsg(defmesg, sizeof (defmesg), fmt);
440 } else if (ckdate_val(fmt, input)) {