xref: /titanic_41/usr/src/lib/libresolv2/include/isc/misc.h (revision 4a6822d07d6d3f9ffe6907ef5f10d11dcadd75c6)
1 /*
2  * Copyright 1997-2002 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 /*
7  * Copyright (c) 1995-1999 by Internet Software Consortium
8  *
9  * Permission to use, copy, modify, and distribute this software for any
10  * purpose with or without fee is hereby granted, provided that the above
11  * copyright notice and this permission notice appear in all copies.
12  *
13  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
14  * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
15  * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
16  * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
17  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
18  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
19  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
20  * SOFTWARE.
21  */
22 
23 /*
24  * $Id: misc.h,v 8.5 2001/06/18 06:40:43 marka Exp $
25  */
26 
27 #pragma ident	"%Z%%M%	%I%	%E% SMI"
28 
29 #ifndef _ISC_MISC_H
30 #define _ISC_MISC_H
31 
32 #include <stdio.h>
33 
34 #define	bitncmp		__bitncmp
35 
36 extern int		bitncmp(const void *l, const void *r, int n);
37 
38 extern int		isc_gethexstring(unsigned char *, size_t, int, FILE *,
39 					 int *);
40 extern void		isc_puthexstring(FILE *, const unsigned char *, size_t,
41 					 size_t, size_t, const char *);
42 extern void		isc_tohex(const unsigned char *, size_t, char *);
43 
44 #endif /*_ISC_MISC_H*/
45