Sync usage with man page.
[netbsd-mini2440.git] / dist / ipf / lib / printsbuf.c
blob46158648b9af5aa4d7e13c171b293045465c21c3
1 /* $NetBSD$ */
3 /*
4 * Copyright (C) 2002-2004 by Darren Reed.
5 *
6 * See the IPFILTER.LICENCE file for details on licencing.
7 *
8 * Id: printsbuf.c,v 1.2.4.2 2006/06/16 17:21:14 darrenr Exp
9 */
11 #ifdef IPFILTER_SCAN
13 #include <ctype.h>
14 #include <stdio.h>
15 #include "ipf.h"
16 #include "netinet/ip_scan.h"
18 void printsbuf(buf)
19 char *buf;
21 u_char *s;
22 int i;
24 for (s = (u_char *)buf, i = ISC_TLEN; i; i--, s++) {
25 if (ISPRINT(*s))
26 putchar(*s);
27 else
28 printf("\\%o", *s);
32 #endif