2 ** This file is in the public domain, so clarified as of
3 ** 2006-07-17 by Arthur David Olson.
11 scheck(const char *const string
, const char *const format
)
14 register const char * fp
;
17 register const char * result
;
21 if (string
== NULL
|| format
== NULL
)
23 fbuf
= malloc(2 * strlen(format
) + 4);
28 while ((*tp
++ = c
= *fp
++) != '\0') {
40 if (*fp
== 'l' || *fp
== 'h')
44 while (*fp
!= '\0' && *fp
!= ']');
45 if ((*tp
++ = *fp
++) == '\0')
51 if (sscanf(string
, fbuf
, &dummy
) != 1)