Lines Matching refs:format

41 static char	*yearmatch(/*char *cp, char *format, struct tm *tm,
44 static char *skipnws(/*char *format*/);
50 strptime(buf, format, tm)
52 char *format;
65 while ((c = *format++) != '\0') {
67 switch (*format++) {
79 *format)) != NULL
82 *format)) != NULL)
98 *format)) != NULL
101 *format)) != NULL)
132 format = skipnws(format);
150 format = skipnws(format);
164 format = skipnws(format);
184 format = skipnws(format);
203 format = skipnws(format);
208 *format)) != NULL) {
216 *format)) != NULL) {
256 format = skipnws(format);
265 case 'x': /* Localized date format */
271 case 'X': /* Localized time format */
278 cp = yearmatch(cp, format, tm, &hadyear);
288 cp = yearmatch(cp, format, tm, &hadyear);
321 * "termc" is the next character in the format string following the one for
363 * If it matches, try matching the rest of the format. If it succeeds, just
373 yearmatch(cp, format, tm, hadyearp)
375 char *format;
396 format = skipnws(format);
406 cp = strptime(cp, format, tm);
412 format = skipnws(format);
414 cp = strptime(cp, format, tm);
420 format = skipnws(format);
421 cp = strptime(cp, format, tm);
454 * If a format item (such as %H, hours) is followed by a non-white-space
455 * character other than "%", and the part of the string that matched the format
457 * non-format-item characters following that format item may be omitted.
460 skipnws(format)
461 register char *format;
468 while ((c = *format) != '\0' && !isspace((unsigned char)c)) {
471 * This is a format item. If it's %%, skip it as
474 if (*(format + 1) == '%')
475 format++; /* skip % */
479 format++;
482 return (format);