Replace inet_addr() with our inet_pton() wrapper
[metze/wireshark/wip.git] / wsutil / strnatcmp.h
1 /* strnatcmp.h
2  *
3  * Original code downloaded from: http://sourcefrog.net/projects/natsort/
4
5   strnatcmp.c -- Perform 'natural order' comparisons of strings in C.
6   Copyright (C) 2000, 2004 by Martin Pool <mbp sourcefrog net>
7
8   This software is provided 'as-is', without any express or implied
9   warranty.  In no event will the authors be held liable for any damages
10   arising from the use of this software.
11
12   Permission is granted to anyone to use this software for any purpose,
13   including commercial applications, and to alter it and redistribute it
14   freely, subject to the following restrictions:
15
16   1. The origin of this software must not be misrepresented; you must not
17      claim that you wrote the original software. If you use this software
18      in a product, an acknowledgment in the product documentation would be
19      appreciated but is not required.
20   2. Altered source versions must be plainly marked as such, and must not be
21      misrepresented as being the original software.
22   3. This notice may not be removed or altered from any source distribution.
23 */
24
25 #ifndef STRNATCMP_H
26 #define STRNATCMP_H
27
28 #include "ws_symbol_export.h"
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif /* __cplusplus */
33
34 /* CUSTOMIZATION SECTION
35  *
36  * You can change this typedef, but must then also change the inline
37  * functions in strnatcmp.c */
38 typedef char nat_char;
39
40 WS_DLL_PUBLIC int ws_ascii_strnatcmp(nat_char const *a, nat_char const *b);
41 WS_DLL_PUBLIC int ws_ascii_strnatcasecmp(nat_char const *a, nat_char const *b);
42
43 #ifdef __cplusplus
44 }
45 #endif /* __cplusplus */
46
47 #endif /* STRNATCMP_H */