3 static char elsieid[] = "@(#)scheck.c 8.16";
4 #endif /* !defined lint */
5 #endif /* !defined NOID */
12 scheck(string, format)
13 const char * const string;
17 register const char * fp;
20 register char * result;
25 if (string == NULL || format == NULL)
27 fbuf = imalloc((int) (2 * strlen(format) + 4));
32 while ((*tp++ = c = *fp++) != '\0') {
44 if (*fp == 'l' || *fp == 'h')
48 while (*fp != '\0' && *fp != ']');
49 if ((*tp++ = *fp++) == '\0')
55 if (sscanf(string, fbuf, &dummy) != 1)
56 result = (char *) format;