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