#ifndef lint
static char *moduleid =
- "@(#)$Id: ascmagic.c,v 1.15 1993/09/16 21:06:33 christos Exp $";
+ "@(#)$Id: ascmagic.c,v 1.16 1993/10/27 21:00:54 christos Exp $";
#endif /* lint */
/* an optimisation over plain strcmp() */
return 1;
}
- if ((i = is_compress(buf, &isblock)) != 0) {
- if (zflag) {
- unsigned char *newbuf;
- int newsize;
-
- if ((newsize = uncompress(buf, &newbuf, nbytes)) != 0) {
- tryit(newbuf, newsize);
- free(newbuf);
- }
- printf(" (%scompressed data - %d bits)",
- isblock ? "block " : "", i);
- }
- else printf("%scompressed data - %d bits",
- isblock ? "block " : "", i);
- return 1;
- }
-
for (i = 0; i < nbytes; i++) {
if (!isascii(*(buf+i)))
return 0; /* not all ascii */