xref: /titanic_41/usr/src/cmd/ipf/lib/common/printsbuf.c (revision d58fda4376e4bf67072ce2e69f6f47036f9dbb68)
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