Sync usage with man page.
[netbsd-mini2440.git] / external / ibm-public / postfix / dist / src / util / name_code.h
blob648a40e94cdeedee6d0b4e71f36b9203b44cc334
1 /* $NetBSD$ */
3 #ifndef _NAME_CODE_H_INCLUDED_
4 #define _NAME_CODE_H_INCLUDED_
6 /*++
7 /* NAME
8 /* name_mask 3h
9 /* SUMMARY
10 /* name to number table mapping
11 /* SYNOPSIS
12 /* #include <name_code.h>
13 /* DESCRIPTION
14 /* .nf
17 * External interface.
19 typedef struct {
20 const char *name;
21 int code;
22 } NAME_CODE;
24 #define NAME_CODE_FLAG_NONE 0
25 #define NAME_CODE_FLAG_STRICT_CASE (1<<0)
27 extern int name_code(const NAME_CODE *, int, const char *);
28 extern const char *str_name_code(const NAME_CODE *, int);
30 /* LICENSE
31 /* .ad
32 /* .fi
33 /* The Secure Mailer license must be distributed with this software.
34 /* AUTHOR(S)
35 /* Wietse Venema
36 /* IBM T.J. Watson Research
37 /* P.O. Box 704
38 /* Yorktown Heights, NY 10598, USA
39 /*--*/
41 #endif