]>
git.saurik.com Git - apple/system_cmds.git/blob - zic.tproj/scheck.c
dcd4d01131387bd152d72a158a768ea37d8a5467
4 __unused
static const char elsieid
[] = "@(#)scheck.c 8.15";
5 #endif /* !defined lint */
6 #endif /* !defined NOID */
9 __unused
static const char rcsid
[] =
10 "$FreeBSD: src/usr.sbin/zic/scheck.c,v 1.7 2001/07/18 11:27:04 dd Exp $";
18 scheck(const char * const string
, const char * const format
)
29 if (string
== NULL
|| format
== NULL
)
31 fbuf
= imalloc((int) (2 * strlen(format
) + 4));
36 while ((*tp
++ = c
= *fp
++) != '\0') {
48 if (*fp
== 'l' || *fp
== 'h')
52 while (*fp
!= '\0' && *fp
!= ']');
53 if ((*tp
++ = *fp
++) == '\0')
59 if (sscanf(string
, fbuf
, &dummy
) != 1)
60 result
= (char *) format
;