3 static const char elsieid[] = "@(#)scheck.c 8.15";
4 #endif /* !defined lint */
5 #endif /* !defined NOID */
8 static const char rcsid[] =
17 scheck(string, format)
18 const char * const string;
19 const char * const format;
22 register const char * fp;
25 register char * result;
30 if (string == NULL || format == NULL)
32 fbuf = imalloc((int) (2 * strlen(format) + 4));
37 while ((*tp++ = c = *fp++) != '\0') {
49 if (*fp == 'l' || *fp == 'h')
53 while (*fp != '\0' && *fp != ']');
54 if ((*tp++ = *fp++) == '\0')
60 if (sscanf(string, fbuf, &dummy) != 1)
61 result = (char *) format;