blob: 5b0a8aedd10f1649e93b0ff3f58fff0ddb891c59 [file] [log] [blame] [raw]
/*
* Copyright (C) 2002-2004 by Darren Reed.
*
* See the IPFILTER.LICENCE file for details on licencing.
*
* $Id$
*/
#ifdef IPFILTER_SCAN
#include <ctype.h>
#include <stdio.h>
#include "ipf.h"
#include "netinet/ip_scan.h"
void printsbuf(buf)
char *buf;
{
u_char *s;
int i;
for (s = (u_char *)buf, i = ISC_TLEN; i; i--, s++) {
if (ISPRINT(*s))
putchar(*s);
else
printf("\\%o", *s);
}
}
#else
void printsbuf(char *buf);
void printsbuf(buf)
char *buf;
{
}
#endif