printifname.c revision 145519
10Sstevel@tonic-gate/* $FreeBSD: head/contrib/ipfilter/lib/printifname.c 145519 2005-04-25 18:20:15Z darrenr $ */ 20Sstevel@tonic-gate 30Sstevel@tonic-gate/* 40Sstevel@tonic-gate * Copyright (C) 1993-2001 by Darren Reed. 52140Srmesta * 62140Srmesta * See the IPFILTER.LICENCE file for details on licencing. 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * Id: printifname.c,v 1.2 2002/01/28 06:50:47 darrenr Exp 90Sstevel@tonic-gate */ 100Sstevel@tonic-gate 110Sstevel@tonic-gate#include "ipf.h" 120Sstevel@tonic-gate 130Sstevel@tonic-gatevoid printifname(format, name, ifp) 140Sstevel@tonic-gatechar *format, *name; 150Sstevel@tonic-gatevoid *ifp; 160Sstevel@tonic-gate{ 170Sstevel@tonic-gate printf("%s%s", format, name); 180Sstevel@tonic-gate if ((ifp == NULL) && strcmp(name, "-") && strcmp(name, "*")) 190Sstevel@tonic-gate printf("(!)"); 200Sstevel@tonic-gate} 213957Sth199096