1 /* $NetBSD: findword.c,v 1.1.1.1 2012/03/23 21:20:08 christos Exp $ */ 2 3 /* 4 * Copyright (C) 2007 by Darren Reed. 5 * 6 * See the IPFILTER.LICENCE file for details on licencing. 7 * 8 * Id: findword.c,v 1.3 2007/10/25 12:55:32 marttikuparinen Exp 9 */ 10 11 #include "ipf.h" 12 13 14 wordtab_t *findword(words, name) 15 wordtab_t *words; 16 char *name; 17 { 18 wordtab_t *w; 19 20 for (w = words; w->w_word != NULL; w++) 21 if (!strcmp(name, w->w_word)) 22 break; 23 if (w->w_word == NULL) 24 return NULL; 25 26 return w; 27 } 28