Home | History | Annotate | Line # | Download | only in util
      1 /*	$NetBSD: name_code.h,v 1.1.1.1 2009/06/23 10:09:00 tron Exp $	*/
      2 
      3 #ifndef _NAME_CODE_H_INCLUDED_
      4 #define _NAME_CODE_H_INCLUDED_
      5 
      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
     15 
     16  /*
     17   * External interface.
     18   */
     19 typedef struct {
     20     const char *name;
     21     int     code;
     22 } NAME_CODE;
     23 
     24 #define NAME_CODE_FLAG_NONE		0
     25 #define NAME_CODE_FLAG_STRICT_CASE	(1<<0)
     26 
     27 extern int name_code(const NAME_CODE *, int, const char *);
     28 extern const char *str_name_code(const NAME_CODE *, int);
     29 
     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 /*--*/
     40 
     41 #endif
     42