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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [include/] [string.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1005 ivang
/*
2
 * string.h
3
 *
4
 * Definitions for memory and string functions.
5
 */
6
 
7
#ifndef _STRING_H_
8
#define _STRING_H_
9
 
10
#ifdef __cplusplus
11
extern "C" {
12
#endif
13
 
14
#include "_ansi.h"
15
#include <sys/reent.h>
16
 
17
#define __need_size_t
18
#include <stddef.h>
19
 
20
#ifndef NULL
21
#define NULL 0
22
#endif
23
 
24
_PTR     _EXFUN(memchr,(const _PTR, int, size_t));
25
int      _EXFUN(memcmp,(const _PTR, const _PTR, size_t));
26
_PTR     _EXFUN(memcpy,(_PTR, const _PTR, size_t));
27
_PTR     _EXFUN(memmove,(_PTR, const _PTR, size_t));
28
_PTR     _EXFUN(memset,(_PTR, int, size_t));
29
char    *_EXFUN(strcat,(char *, const char *));
30
char    *_EXFUN(strchr,(const char *, int));
31
int      _EXFUN(strcmp,(const char *, const char *));
32
int      _EXFUN(strcoll,(const char *, const char *));
33
char    *_EXFUN(strcpy,(char *, const char *));
34
size_t   _EXFUN(strcspn,(const char *, const char *));
35
char    *_EXFUN(strerror,(int));
36
size_t   _EXFUN(strlen,(const char *));
37
size_t   _EXFUN(strnlen,(const char *, size_t));
38
char    *_EXFUN(strncat,(char *, const char *, size_t));
39
int      _EXFUN(strncmp,(const char *, const char *, size_t));
40
char    *_EXFUN(strncpy,(char *, const char *, size_t));
41
char    *_EXFUN(strpbrk,(const char *, const char *));
42
char    *_EXFUN(strrchr,(const char *, int));
43
size_t   _EXFUN(strspn,(const char *, const char *));
44
char    *_EXFUN(strstr,(const char *, const char *));
45
 
46
#ifndef _REENT_ONLY
47
char    *_EXFUN(strtok,(char *, const char *));
48
#endif
49
 
50
size_t   _EXFUN(strxfrm,(char *, const char *, size_t));
51
 
52
#ifndef __STRICT_ANSI__
53
char    *_EXFUN(strtok_r,(char *, const char *, char **));
54
 
55
int      _EXFUN(bcmp,(const char *, const char *, size_t));
56
void     _EXFUN(bcopy,(const char *, char *, size_t));
57
void     _EXFUN(bzero,(char *, size_t));
58
int      _EXFUN(ffs,(int));
59
char    *_EXFUN(index,(const char *, int));
60
_PTR     _EXFUN(memccpy,(_PTR, const _PTR, int, size_t));
61
char    *_EXFUN(rindex,(const char *, int));
62
int      _EXFUN(strcasecmp,(const char *, const char *));
63
char    *_EXFUN(strdup,(const char *));
64
char    *_EXFUN(_strdup_r,(struct _reent *, const char *));
65
int      _EXFUN(strncasecmp,(const char *, const char *, size_t));
66
char    *_EXFUN(strsep,(char **, const char *));
67
char    *_EXFUN(strlwr,(char *));
68
char    *_EXFUN(strupr,(char *));
69
#ifdef __CYGWIN__
70
#ifndef DEFS_H  /* Kludge to work around problem compiling in gdb */
71
const char  *_EXFUN(strsignal, (int __signo));
72
#endif
73
int     _EXFUN(strtosigno, (const char *__name));
74
#endif
75
 
76
/* These function names are used on Windows and perhaps other systems.  */
77
#ifndef strcmpi
78
#define strcmpi strcasecmp
79
#endif
80
#ifndef stricmp
81
#define stricmp strcasecmp
82
#endif
83
#ifndef strncmpi
84
#define strncmpi strncasecmp
85
#endif
86
#ifndef strnicmp
87
#define strnicmp strncasecmp
88
#endif
89
 
90
#endif /* ! __STRICT_ANSI__ */
91
 
92
#ifdef __cplusplus
93
}
94
#endif
95
#endif /* _STRING_H_ */

powered by: WebSVN 2.1.0

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