#ifndef lint
#ifndef NOID
-static char elsieid[] = "@(#)scheck.c 8.10";
+static char elsieid[] = "@(#)scheck.c 8.13";
#endif /* !defined lint */
#endif /* !defined NOID */
char *
scheck(string, format)
const char * const string;
-const char * const format;
+char * const format;
{
register char * fbuf;
register const char * fp;
register int c;
register char * result;
char dummy;
+ static char nada;
- result = "";
+ result = &nada;
if (string == NULL || format == NULL)
return result;
- fbuf = imalloc(2 * strlen(format) + 4);
+ fbuf = imalloc((int) (2 * strlen(format) + 4));
if (fbuf == NULL)
return result;
fp = format;
*tp++ = '*';
if (*fp == '*')
++fp;
- while (isascii(*fp) && isdigit(*fp))
+ while (is_digit(*fp))
*tp++ = *fp++;
if (*fp == 'l' || *fp == 'h')
*tp++ = *fp++;