3 * Original code downloaded from: http://sourcefrog.net/projects/natsort/
5 strnatcmp.c -- Perform 'natural order' comparisons of strings in C.
6 Copyright (C) 2000, 2004 by Martin Pool <mbp sourcefrog net>
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.
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:
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.
28 #include "ws_symbol_export.h"
32 #endif /* __cplusplus */
34 /* CUSTOMIZATION SECTION
36 * You can change this typedef, but must then also change the inline
37 * functions in strnatcmp.c */
38 typedef char nat_char;
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);
45 #endif /* __cplusplus */
47 #endif /* STRNATCMP_H */