2002-06-15 15:49:32 +00:00
|
|
|
/*
|
|
|
|
* string.h
|
|
|
|
*
|
|
|
|
* Definitions for memory and string functions.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _STRING_H_
|
2010-02-22 21:24:09 +00:00
|
|
|
#define _STRING_H_
|
2002-06-15 15:49:32 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "_ansi.h"
|
|
|
|
|
2010-05-06 23:53:01 +00:00
|
|
|
#define __need_size_t
|
|
|
|
#define __need_NULL
|
|
|
|
#include <stddef.h>
|
2002-06-15 15:49:32 +00:00
|
|
|
|
2010-02-22 21:24:09 +00:00
|
|
|
_PTR _EXFUN(memchr,(const _PTR, int, size_t));
|
|
|
|
int _EXFUN(memcmp,(const _PTR, const _PTR, size_t));
|
|
|
|
_PTR _EXFUN(memcpy,(_PTR, const _PTR, size_t));
|
|
|
|
_PTR _EXFUN(memmove,(_PTR, const _PTR, size_t));
|
|
|
|
_PTR _EXFUN(memset,(_PTR, int, size_t));
|
|
|
|
char *_EXFUN(strcat,(char *, const char *));
|
|
|
|
char *_EXFUN(strchr,(const char *, int));
|
|
|
|
int _EXFUN(strcmp,(const char *, const char *));
|
|
|
|
int _EXFUN(strcoll,(const char *, const char *));
|
|
|
|
char *_EXFUN(strcpy,(char *, const char *));
|
|
|
|
size_t _EXFUN(strcspn,(const char *, const char *));
|
|
|
|
char *_EXFUN(strerror,(int));
|
|
|
|
size_t _EXFUN(strlen,(const char *));
|
|
|
|
char *_EXFUN(strncat,(char *, const char *, size_t));
|
|
|
|
int _EXFUN(strncmp,(const char *, const char *, size_t));
|
|
|
|
char *_EXFUN(strpbrk,(const char *, const char *));
|
|
|
|
char *_EXFUN(strrchr,(const char *, int));
|
|
|
|
size_t _EXFUN(strspn,(const char *, const char *));
|
|
|
|
char *_EXFUN(strstr,(const char *, const char *));
|
|
|
|
char *_EXFUN(strcasestr,(const char *, const char *));
|
2002-06-15 15:49:32 +00:00
|
|
|
|
2009-07-14 13:57:45 +00:00
|
|
|
size_t strlcpy(char *dst, const char *src, size_t siz);
|
2010-01-02 13:31:46 +00:00
|
|
|
size_t strlcat(char *dst, const char *src, size_t siz);
|
2009-07-14 13:57:45 +00:00
|
|
|
|
2002-06-15 15:49:32 +00:00
|
|
|
#ifndef _REENT_ONLY
|
2010-02-22 21:24:09 +00:00
|
|
|
char *_EXFUN(strtok,(char *, const char *));
|
2002-06-15 15:49:32 +00:00
|
|
|
#endif
|
|
|
|
|
2010-02-22 21:24:09 +00:00
|
|
|
size_t _EXFUN(strxfrm,(char *, const char *, size_t));
|
2002-06-15 15:49:32 +00:00
|
|
|
|
|
|
|
#ifndef __STRICT_ANSI__
|
2010-02-22 21:24:09 +00:00
|
|
|
char *_EXFUN(strtok_r,(char *, const char *, char **));
|
2002-06-15 15:49:32 +00:00
|
|
|
|
2010-02-22 21:24:09 +00:00
|
|
|
_PTR _EXFUN(memccpy,(_PTR, const _PTR, int, size_t));
|
|
|
|
int _EXFUN(strcasecmp,(const char *, const char *));
|
|
|
|
int _EXFUN(strncasecmp,(const char *, const char *, size_t));
|
2002-06-17 13:34:04 +00:00
|
|
|
|
2002-06-15 15:49:32 +00:00
|
|
|
#ifdef __CYGWIN__
|
2010-02-22 21:24:09 +00:00
|
|
|
#ifndef DEFS_H /* Kludge to work around problem compiling in gdb */
|
2002-06-15 15:49:32 +00:00
|
|
|
const char *_EXFUN(strsignal, (int __signo));
|
|
|
|
#endif
|
|
|
|
int _EXFUN(strtosigno, (const char *__name));
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* ! __STRICT_ANSI__ */
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif /* _STRING_H_ */
|