Daniel Stenberg | 7da93d5 | 2002-06-15 15:49:32 +0000 | [diff] [blame] | 1 | /* |
| 2 | * string.h |
| 3 | * |
| 4 | * Definitions for memory and string functions. |
| 5 | */ |
| 6 | |
| 7 | #ifndef _STRING_H_ |
Andree Buschmann | 0b7dcd6 | 2010-02-22 21:24:09 +0000 | [diff] [blame] | 8 | #define _STRING_H_ |
Daniel Stenberg | 7da93d5 | 2002-06-15 15:49:32 +0000 | [diff] [blame] | 9 | |
| 10 | #ifdef __cplusplus |
| 11 | extern "C" { |
| 12 | #endif |
| 13 | |
| 14 | #include "_ansi.h" |
Daniel Stenberg | 7da93d5 | 2002-06-15 15:49:32 +0000 | [diff] [blame] | 15 | |
Frank Gevaerts | ca52f94 | 2010-05-06 23:53:01 +0000 | [diff] [blame] | 16 | #define __need_size_t |
| 17 | #define __need_NULL |
| 18 | #include <stddef.h> |
Daniel Stenberg | 7da93d5 | 2002-06-15 15:49:32 +0000 | [diff] [blame] | 19 | |
Andree Buschmann | 0b7dcd6 | 2010-02-22 21:24:09 +0000 | [diff] [blame] | 20 | _PTR _EXFUN(memchr,(const _PTR, int, size_t)); |
| 21 | int _EXFUN(memcmp,(const _PTR, const _PTR, size_t)); |
| 22 | _PTR _EXFUN(memcpy,(_PTR, const _PTR, size_t)); |
| 23 | _PTR _EXFUN(memmove,(_PTR, const _PTR, size_t)); |
| 24 | _PTR _EXFUN(memset,(_PTR, int, size_t)); |
| 25 | char *_EXFUN(strcat,(char *, const char *)); |
| 26 | char *_EXFUN(strchr,(const char *, int)); |
| 27 | int _EXFUN(strcmp,(const char *, const char *)); |
| 28 | int _EXFUN(strcoll,(const char *, const char *)); |
| 29 | char *_EXFUN(strcpy,(char *, const char *)); |
| 30 | size_t _EXFUN(strcspn,(const char *, const char *)); |
| 31 | char *_EXFUN(strerror,(int)); |
| 32 | size_t _EXFUN(strlen,(const char *)); |
| 33 | char *_EXFUN(strncat,(char *, const char *, size_t)); |
| 34 | int _EXFUN(strncmp,(const char *, const char *, size_t)); |
| 35 | char *_EXFUN(strpbrk,(const char *, const char *)); |
| 36 | char *_EXFUN(strrchr,(const char *, int)); |
| 37 | size_t _EXFUN(strspn,(const char *, const char *)); |
| 38 | char *_EXFUN(strstr,(const char *, const char *)); |
| 39 | char *_EXFUN(strcasestr,(const char *, const char *)); |
Daniel Stenberg | 7da93d5 | 2002-06-15 15:49:32 +0000 | [diff] [blame] | 40 | |
Nils Wallménius | 3d4701a | 2009-07-14 13:57:45 +0000 | [diff] [blame] | 41 | size_t strlcpy(char *dst, const char *src, size_t siz); |
Torne Wuff | 6e9af8b | 2010-01-02 13:31:46 +0000 | [diff] [blame] | 42 | size_t strlcat(char *dst, const char *src, size_t siz); |
Nils Wallménius | 3d4701a | 2009-07-14 13:57:45 +0000 | [diff] [blame] | 43 | |
Daniel Stenberg | 7da93d5 | 2002-06-15 15:49:32 +0000 | [diff] [blame] | 44 | #ifndef _REENT_ONLY |
Andree Buschmann | 0b7dcd6 | 2010-02-22 21:24:09 +0000 | [diff] [blame] | 45 | char *_EXFUN(strtok,(char *, const char *)); |
Daniel Stenberg | 7da93d5 | 2002-06-15 15:49:32 +0000 | [diff] [blame] | 46 | #endif |
| 47 | |
Andree Buschmann | 0b7dcd6 | 2010-02-22 21:24:09 +0000 | [diff] [blame] | 48 | size_t _EXFUN(strxfrm,(char *, const char *, size_t)); |
Daniel Stenberg | 7da93d5 | 2002-06-15 15:49:32 +0000 | [diff] [blame] | 49 | |
| 50 | #ifndef __STRICT_ANSI__ |
Andree Buschmann | 0b7dcd6 | 2010-02-22 21:24:09 +0000 | [diff] [blame] | 51 | char *_EXFUN(strtok_r,(char *, const char *, char **)); |
Daniel Stenberg | 7da93d5 | 2002-06-15 15:49:32 +0000 | [diff] [blame] | 52 | |
Andree Buschmann | 0b7dcd6 | 2010-02-22 21:24:09 +0000 | [diff] [blame] | 53 | _PTR _EXFUN(memccpy,(_PTR, const _PTR, int, size_t)); |
| 54 | int _EXFUN(strcasecmp,(const char *, const char *)); |
| 55 | int _EXFUN(strncasecmp,(const char *, const char *, size_t)); |
Daniel Stenberg | a898728 | 2002-06-17 13:34:04 +0000 | [diff] [blame] | 56 | |
Daniel Stenberg | 7da93d5 | 2002-06-15 15:49:32 +0000 | [diff] [blame] | 57 | #ifdef __CYGWIN__ |
Andree Buschmann | 0b7dcd6 | 2010-02-22 21:24:09 +0000 | [diff] [blame] | 58 | #ifndef DEFS_H /* Kludge to work around problem compiling in gdb */ |
Daniel Stenberg | 7da93d5 | 2002-06-15 15:49:32 +0000 | [diff] [blame] | 59 | const char *_EXFUN(strsignal, (int __signo)); |
| 60 | #endif |
| 61 | int _EXFUN(strtosigno, (const char *__name)); |
| 62 | #endif |
| 63 | |
Daniel Stenberg | 7da93d5 | 2002-06-15 15:49:32 +0000 | [diff] [blame] | 64 | #endif /* ! __STRICT_ANSI__ */ |
| 65 | |
| 66 | #ifdef __cplusplus |
| 67 | } |
| 68 | #endif |
| 69 | #endif /* _STRING_H_ */ |