44bc301921
Reported by: jrtc27
Fixes: 2582ae5740
MFC after: 1 month
25 lines
403 B
C
25 lines
403 B
C
/*
|
|
* Copyright (C) 2012 by Darren Reed.
|
|
*
|
|
* See the IPFILTER.LICENCE file for details on licencing.
|
|
*
|
|
* $Id: findword.c,v 1.3.4.1 2012/07/22 08:04:24 darren_r Exp $
|
|
*/
|
|
|
|
#include "ipf.h"
|
|
|
|
|
|
wordtab_t *
|
|
findword(wordtab_t *words, char *name)
|
|
{
|
|
wordtab_t *w;
|
|
|
|
for (w = words; w->w_word != NULL; w++)
|
|
if (!strcmp(name, w->w_word))
|
|
break;
|
|
if (w->w_word == NULL)
|
|
return (NULL);
|
|
|
|
return (w);
|
|
}
|