OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [language/] [c/] [libc/] [string/] [v2_0/] [include/] [string.h] - Blame information for rev 27

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
#ifndef CYGONCE_LIBC_STRING_H
2
#define CYGONCE_LIBC_STRING_H
3
/*===========================================================================
4
//
5
//      string.h
6
//
7
//      ANSI standard string and memory area manipulation routines
8
//
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.
14
//
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.
18
//
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
22
// for more details.
23
//
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.
27
//
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.
34
//
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.
37
//
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####
44
//
45
// Author(s):     jlarmour
46
// Contributors:
47
// Date:          2000-04-14
48
// Purpose:       This file provides various string functions required by
49
//                ISO C 9899:1990
50
// Description:   The real contents of this file get filled in from the
51
//                configuration set by the implementation
52
// Usage:         Do not include this file directly - use #include <string.h>
53
//
54
//####DESCRIPTIONEND####
55
//
56
//=========================================================================*/
57
 
58
/* CONFIGURATION */
59
 
60
#include <pkgconf/libc_string.h>   /* Configuration header */
61
 
62
#ifdef __cplusplus
63
extern "C" {
64
#endif
65
 
66
/* FUNCTION PROTOTYPES */
67
 
68
/*=========================================================================*/
69
 
70
/* 7.11.2 Copying functions */
71
 
72
extern void *
73
memmove( void *, const void *, size_t );
74
 
75
extern char *
76
strcpy( char *, const char * );
77
 
78
extern char *
79
strncpy( char *, const char *, size_t );
80
 
81
/*=========================================================================*/
82
 
83
/* 7.11.3 Concatenation functions */
84
 
85
extern char *
86
strcat( char *, const char * );
87
 
88
extern char *
89
strncat( char *, const char *, size_t );
90
 
91
 
92
/*=========================================================================*/
93
 
94
/* 7.11.4 Comparison functions */
95
 
96
extern int
97
memcmp( const void *, const void *, size_t );
98
 
99
extern int
100
strcmp( const char *, const char * );
101
 
102
extern int
103
strcoll( const char *, const char * );
104
 
105
extern int
106
strncmp( const char *, const char *, size_t );
107
 
108
extern size_t
109
strxfrm( char *, const char *, size_t );
110
 
111
 
112
/*=========================================================================*/
113
 
114
/* 7.11.5 Search functions */
115
 
116
extern void *
117
memchr( const void *, int,  size_t );
118
 
119
extern char *
120
strchr( const char *, int );
121
 
122
extern size_t
123
strcspn( const char *, const char * );
124
 
125
extern char *
126
strpbrk( const char *, const char * );
127
 
128
extern char *
129
strrchr( const char *, int );
130
 
131
extern size_t
132
strspn( const char *, const char * );
133
 
134
extern char *
135
strstr( const char *, const char * );
136
 
137
extern char *
138
strtok( char *, const char * );
139
 
140
/* POSIX 1003.1 section 8.3.3 strtok_r() */
141
 
142
extern char *
143
strtok_r( char *, const char *, char ** );
144
 
145
 
146
/*=========================================================================*/
147
 
148
/* 7.11.6 Miscellaneous functions */
149
 
150
extern size_t
151
strlen( const char * );
152
 
153
#ifdef __cplusplus
154
}   /* extern "C" */
155
#endif
156
 
157
/* INLINE FUNCTIONS */
158
 
159
#ifdef CYGIMP_LIBC_STRING_INLINES
160
#include <cyg/libc/string/string.inl>
161
#endif
162
 
163
#endif /* CYGONCE_LIBC_STRING_H multiple inclusion protection */
164
 
165
/* EOF string.h */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.