3 static char elsieid
[] = "@(#)scheck.c 8.15";
4 #endif /* !defined lint */
5 #endif /* !defined NOID */
9 * $FreeBSD: src/usr.sbin/zic/scheck.c,v 1.4 1999/08/28 01:21:19 peter Exp $
10 * $DragonFly: src/usr.sbin/zic/scheck.c,v 1.3 2004/02/29 16:55:28 joerg Exp $
17 scheck(const char * const string
, const char * const format
)
28 if (string
== NULL
|| format
== NULL
)
30 fbuf
= imalloc((int) (2 * strlen(format
) + 4));
35 while ((*tp
++ = c
= *fp
++) != '\0') {
47 if (*fp
== 'l' || *fp
== 'h')
51 while (*fp
!= '\0' && *fp
!= ']');
52 if ((*tp
++ = *fp
++) == '\0')
58 if (sscanf(string
, fbuf
, &dummy
) != 1)
59 result
= (char *) format
;