xref: /titanic_41/usr/src/cmd/ipf/lib/common/printsbuf.c (revision 70025d765b044c6d8594bb965a2247a61e991a99)
1 #ifdef	IPFILTER_SCAN
2 
3 #include <ctype.h>
4 #include <stdio.h>
5 #include "ipf.h"
6 #include "netinet/ip_scan.h"
7 
8 void printsbuf(buf)
9 char *buf;
10 {
11 	u_char *s;
12 	int i;
13 
14 	for (s = (u_char *)buf, i = ISC_TLEN; i; i--, s++) {
15 		if (isprint(*s))
16 			putchar(*s);
17 		else
18 			printf("\\%o", *s);
19 	}
20 }
21 
22 #endif
23