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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
/*
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
 
16
#define __need_size_t
17
#include <stddef.h>
18
 
19
#ifndef NULL
20 56 joel
#define NULL 0
21 39 lampret
#endif
22
 
23
_PTR     _EXFUN(memchr,(const _PTR, int, size_t));
24
int      _EXFUN(memcmp,(const _PTR, const _PTR, size_t));
25
_PTR     _EXFUN(memcpy,(_PTR, const _PTR, size_t));
26
_PTR     _EXFUN(memmove,(_PTR, const _PTR, size_t));
27
_PTR     _EXFUN(memset,(_PTR, int, size_t));
28
char    *_EXFUN(strcat,(char *, const char *));
29
char    *_EXFUN(strchr,(const char *, int));
30
int      _EXFUN(strcmp,(const char *, const char *));
31
int      _EXFUN(strcoll,(const char *, const char *));
32
char    *_EXFUN(strcpy,(char *, const char *));
33
size_t   _EXFUN(strcspn,(const char *, const char *));
34
char    *_EXFUN(strerror,(int));
35
size_t   _EXFUN(strlen,(const char *));
36
char    *_EXFUN(strncat,(char *, const char *, size_t));
37
int      _EXFUN(strncmp,(const char *, const char *, size_t));
38
char    *_EXFUN(strncpy,(char *, const char *, size_t));
39
char    *_EXFUN(strpbrk,(const char *, const char *));
40
char    *_EXFUN(strrchr,(const char *, int));
41
size_t   _EXFUN(strspn,(const char *, const char *));
42
char    *_EXFUN(strstr,(const char *, const char *));
43
 
44
#ifndef _REENT_ONLY
45
char    *_EXFUN(strtok,(char *, const char *));
46
#endif
47
 
48
size_t   _EXFUN(strxfrm,(char *, const char *, size_t));
49
 
50 56 joel
#ifndef __STRICT_ANSI__
51 39 lampret
char    *_EXFUN(strtok_r,(char *, const char *, char **));
52
 
53
int      _EXFUN(bcmp,(const char *, const char *, size_t));
54
void     _EXFUN(bcopy,(const char *, char *, size_t));
55
void     _EXFUN(bzero,(char *, size_t));
56
int      _EXFUN(ffs,(int));
57
char    *_EXFUN(index,(const char *, int));
58
_PTR     _EXFUN(memccpy,(_PTR, const _PTR, int, size_t));
59
char    *_EXFUN(rindex,(const char *, int));
60
int      _EXFUN(strcasecmp,(const char *, const char *));
61
char    *_EXFUN(strdup,(const char *));
62
int      _EXFUN(strncasecmp,(const char *, const char *, size_t));
63
char    *_EXFUN(strsep,(char **, const char *));
64
char    *_EXFUN(strlwr,(char *));
65
char    *_EXFUN(strupr,(char *));
66
#ifdef __CYGWIN32__
67 56 joel
char    *_EXFUN(strsignal, (int __signo));
68
int     _EXFUN(strtosigno, (const char *__name));
69 39 lampret
#endif
70
 
71
/* These function names are used on Windows and perhaps other systems.  */
72
#ifndef strcmpi
73
#define strcmpi strcasecmp
74
#endif
75
#ifndef stricmp
76
#define stricmp strcasecmp
77
#endif
78
#ifndef strncmpi
79
#define strncmpi strncasecmp
80
#endif
81
#ifndef strnicmp
82
#define strnicmp strncasecmp
83
#endif
84
 
85 56 joel
#endif /* ! __STRICT_ANSI__ */
86 39 lampret
 
87
#ifdef __cplusplus
88
}
89
#endif
90
#endif /* _STRING_H_ */

powered by: WebSVN 2.1.0

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