Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / global / been_here.h
blobe38c1a454ad9df0efbcf43297bb8ac5ebf735354
1 /* $NetBSD$ */
3 #ifndef _BEEN_HERE_H_INCLUDED_
4 #define _BEEN_HERE_H_INCLUDED_
6 /*++
7 /* NAME
8 /* been_here 3h
9 /* SUMMARY
10 /* detect repeated occurrence of string
11 /* SYNOPSIS
12 /* #include <been_here.h>
13 /* DESCRIPTION
14 /* .nf
17 * System library.
19 #include <stdarg.h>
22 * External interface.
24 typedef struct {
25 int limit; /* ceiling, zero for none */
26 int flags; /* see below */
27 struct HTABLE *table;
28 } BH_TABLE;
30 #define BH_FLAG_NONE 0 /* no special processing */
31 #define BH_FLAG_FOLD (1<<0) /* fold case */
33 extern BH_TABLE *been_here_init(int, int);
34 extern void been_here_free(BH_TABLE *);
35 extern int been_here_fixed(BH_TABLE *, const char *);
36 extern int PRINTFLIKE(2, 3) been_here(BH_TABLE *, const char *,...);
37 extern int been_here_check_fixed(BH_TABLE *, const char *);
38 extern int PRINTFLIKE(2, 3) been_here_check(BH_TABLE *, const char *,...);
40 /* LICENSE
41 /* .ad
42 /* .fi
43 /* The Secure Mailer license must be distributed with this software.
44 /* AUTHOR(S)
45 /* Wietse Venema
46 /* IBM T.J. Watson Research
47 /* P.O. Box 704
48 /* Yorktown Heights, NY 10598, USA
49 /*--*/
51 #endif