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