1 #ifndef CYGONCE_ISO_STRING_H
2 #define CYGONCE_ISO_STRING_H
3 /*========================================================================
7 // ISO string functions
9 //========================================================================
10 //####ECOSGPLCOPYRIGHTBEGIN####
11 // -------------------------------------------
12 // This file is part of eCos, the Embedded Configurable Operating System.
13 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
15 // eCos is free software; you can redistribute it and/or modify it under
16 // the terms of the GNU General Public License as published by the Free
17 // Software Foundation; either version 2 or (at your option) any later version.
19 // eCos is distributed in the hope that it will be useful, but WITHOUT ANY
20 // WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 // FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
24 // You should have received a copy of the GNU General Public License along
25 // with eCos; if not, write to the Free Software Foundation, Inc.,
26 // 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
28 // As a special exception, if other files instantiate templates or use macros
29 // or inline functions from this file, or you compile this file and link it
30 // with other works to produce a work based on this file, this file does not
31 // by itself cause the resulting work to be covered by the GNU General Public
32 // License. However the source code for this file must still be made available
33 // in accordance with section (3) of the GNU General Public License.
35 // This exception does not invalidate any other reasons why a work based on
36 // this file might be covered by the GNU General Public License.
38 // Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
39 // at http://sources.redhat.com/ecos/ecos-license/
40 // -------------------------------------------
41 //####ECOSGPLCOPYRIGHTEND####
42 //========================================================================
43 //#####DESCRIPTIONBEGIN####
45 // Author(s): jlarmour
48 // Purpose: This file provides the string macros, types and functions
49 // required by ISO C and POSIX 1003.1. It may also provide
50 // other compatibility functions like BSD-style string
52 // Description: The real contents of this file get set from the
53 // configuration (set by the implementation)
54 // Usage: #include <string.h>
56 //####DESCRIPTIONEND####
58 //======================================================================
63 #include <pkgconf/isoinfra.h> /* Configuration header */
67 /* This is the "standard" way to get NULL and size_t from stddef.h,
68 * which is the canonical location of the definitions.
74 #ifdef CYGINT_ISO_STRERROR
75 # include CYGBLD_ISO_STRERROR_HEADER
78 /* memcpy() and memset() are special as they are used internally by
79 * the compiler, so they *must* exist. So if no-one claims to implement
80 * them, prototype them anyway */
82 #ifdef CYGBLD_ISO_MEMCPY_HEADER
83 # include CYGBLD_ISO_MEMCPY_HEADER
91 memcpy( void *, const void *, size_t );
95 #ifdef CYGBLD_ISO_MEMSET_HEADER
96 # include CYGBLD_ISO_MEMSET_HEADER
104 memset( void *, int, size_t );
108 #ifdef CYGINT_ISO_STRTOK_R
109 # include CYGBLD_ISO_STRTOK_R_HEADER
112 #ifdef CYGINT_ISO_STRING_LOCALE_FUNCS
113 # include CYGBLD_ISO_STRING_LOCALE_FUNCS_HEADER
116 #ifdef CYGINT_ISO_STRING_BSD_FUNCS
117 # include CYGBLD_ISO_STRING_BSD_FUNCS_HEADER
120 #ifdef CYGINT_ISO_STRING_MEMFUNCS
121 # include CYGBLD_ISO_STRING_MEMFUNCS_HEADER
124 #ifdef CYGINT_ISO_STRING_STRFUNCS
125 # include CYGBLD_ISO_STRING_STRFUNCS_HEADER
128 #endif /* CYGONCE_ISO_STRING_H multiple inclusion protection */