2 * $FreeBSD: src/usr.sbin/zic/scheck.c,v 1.4 1999/08/28 01:21:19 peter Exp $
9 scheck(const char * const string, const char * const format)
19 if (string == NULL || format == NULL)
21 fbuf = imalloc((int) (2 * strlen(format) + 4));
26 while ((*tp++ = c = *fp++) != '\0') {
38 if (*fp == 'l' || *fp == 'h')
42 while (*fp != '\0' && *fp != ']');
43 if ((*tp++ = *fp++) == '\0')
49 if (sscanf(string, fbuf, &dummy) != 1)
50 result = (char *) format;