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