Add BIND 9.2.4rc7.
[dragonfly.git] / contrib / bind-9.2.4rc7 / lib / isc / include / isc / string.h
blob7da27cad317954ef92eb4afb8312f2209285d241
1 /*
2 * Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 2000, 2001 Internet Software Consortium.
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 * PERFORMANCE OF THIS SOFTWARE.
18 /* $Id: string.h,v 1.9.2.1 2004/03/09 06:12:02 marka Exp $ */
20 #ifndef ISC_STRING_H
21 #define ISC_STRING_H 1
23 #include <string.h>
25 #include <isc/int.h>
26 #include <isc/lang.h>
27 #include <isc/platform.h>
29 ISC_LANG_BEGINDECLS
31 isc_uint64_t
32 isc_string_touint64(char *source, char **endp, int base);
34 * Convert the string pointed to by 'source' to isc_uint64_t.
36 * On successful conversion 'endp' points to the first character
37 * after conversion is complete.
39 * 'base': 0 or 2..36
41 * If base is 0 the base is computed from the string type.
43 * On error 'endp' points to 'source'.
47 char *
48 isc_string_separate(char **stringp, const char *delim);
50 #ifdef ISC_PLATFORM_NEEDSTRSEP
51 #define strsep isc_string_separate
52 #endif
54 ISC_LANG_ENDDECLS
56 #endif /* ISC_STRING_H */