|
0
|
1 #ifndef CYGONCE_LIBC_STRING_INL |
|
|
2 #define CYGONCE_LIBC_STRING_INL |
|
|
3 //=========================================================================== |
|
|
4 // |
|
|
5 // string.inl |
|
|
6 // |
|
|
7 // Inline functions for ANSI standard string and memory area |
|
|
8 // manipulation routines described in ANSI para 7.11 |
|
|
9 // |
|
|
10 //=========================================================================== |
|
|
11 //####COPYRIGHTBEGIN#### |
|
|
12 // |
|
|
13 // ------------------------------------------- |
|
|
14 // The contents of this file are subject to the Cygnus eCos Public License |
|
|
15 // Version 1.0 (the "License"); you may not use this file except in |
|
|
16 // compliance with the License. You may obtain a copy of the License at |
|
|
17 // http://sourceware.cygnus.com/ecos |
|
|
18 // |
|
|
19 // Software distributed under the License is distributed on an "AS IS" |
|
|
20 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the |
|
|
21 // License for the specific language governing rights and limitations under |
|
|
22 // the License. |
|
|
23 // |
|
|
24 // The Original Code is eCos - Embedded Cygnus Operating System, released |
|
|
25 // September 30, 1998. |
|
|
26 // |
|
|
27 // The Initial Developer of the Original Code is Cygnus. Portions created |
|
|
28 // by Cygnus are Copyright (C) 1998 Cygnus Solutions. All Rights Reserved. |
|
|
29 // ------------------------------------------- |
|
|
30 // |
|
|
31 //####COPYRIGHTEND#### |
|
|
32 //=========================================================================== |
|
|
33 //#####DESCRIPTIONBEGIN#### |
|
|
34 // |
|
|
35 // Author(s): jlarmour |
|
|
36 // Contributors: jlarmour@cygnus.co.uk |
|
|
37 // Date: 1998-02-13 |
|
|
38 // Purpose: |
|
|
39 // Description: |
|
|
40 // Usage: #include <string.h> - do not include this file directly |
|
|
41 // |
|
|
42 //####DESCRIPTIONEND#### |
|
|
43 // |
|
|
44 //=========================================================================== |
|
|
45 |
|
|
46 // CONFIGURATION |
|
|
47 |
|
|
48 #include <pkgconf/libc.h> // Configuration header |
|
|
49 |
|
|
50 // Include the C library? |
|
|
51 #ifdef CYGPKG_LIBC |
|
|
52 |
|
|
53 // INCLUDES |
|
|
54 |
|
|
55 #include <string.h> // header for this file just in case, although |
|
|
56 // it should have already been included |
|
|
57 |
|
|
58 |
|
|
59 CYGPRI_LIBC_INLINE int |
|
|
60 strcoll( const char *s1, const char *s2 ) |
|
|
61 { |
|
|
62 return strcmp(s1, s2); |
|
|
63 } // strcoll() |
|
|
64 |
|
|
65 |
|
|
66 #endif // ifdef CYGPKG_LIBC |
|
|
67 |
|
|
68 #endif // CYGONCE_LIBC_STRING_INL multiple inclusion protection |
|
|
69 |
|
|
70 // EOF string.inl |