version 1.15, 2005/03/30 03:04:16 |
version 1.16, 2005/12/13 00:35:22 |
|
|
|
|
#ifndef _STRING_H_ |
#ifndef _STRING_H_ |
#define _STRING_H_ |
#define _STRING_H_ |
|
|
|
#include <sys/cdefs.h> |
#include <machine/ansi.h> |
#include <machine/ansi.h> |
|
|
#ifdef _BSD_SIZE_T_ |
#ifdef _BSD_SIZE_T_ |
|
|
#endif |
#endif |
#endif |
#endif |
|
|
#include <sys/cdefs.h> |
|
|
|
__BEGIN_DECLS |
__BEGIN_DECLS |
void *memchr(const void *, int, size_t); |
void *memchr(const void *, int, size_t); |
int memcmp(const void *, const void *, size_t); |
int memcmp(const void *, const void *, size_t); |
|
|
char *strcpy(char *, const char *); |
char *strcpy(char *, const char *); |
size_t strcspn(const char *, const char *); |
size_t strcspn(const char *, const char *); |
char *strerror(int); |
char *strerror(int); |
int strerror_r(int, char *, size_t) |
|
__attribute__ ((__bounded__(__string__,2,3))); |
|
size_t strlen(const char *); |
size_t strlen(const char *); |
char *strncat(char *, const char *, size_t) |
char *strncat(char *, const char *, size_t) |
__attribute__ ((__bounded__(__string__,1,3))); |
__attribute__ ((__bounded__(__string__,1,3))); |
|
|
size_t strxfrm(char *, const char *, size_t) |
size_t strxfrm(char *, const char *, size_t) |
__attribute__ ((__bounded__(__string__,1,3))); |
__attribute__ ((__bounded__(__string__,1,3))); |
|
|
/* Nonstandard routines */ |
#if __BSD_VISIBLE || __XPG_VISIBLE |
#if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE) |
void *memccpy(void *, const void *, int, size_t) |
|
__attribute__ ((__bounded__(__buffer__,1,4))); |
|
#endif |
|
|
|
#if __BSD_VISIBLE || __XPG_VISIBLE >= 420 |
int bcmp(const void *, const void *, size_t); |
int bcmp(const void *, const void *, size_t); |
void bcopy(const void *, void *, size_t) |
void bcopy(const void *, void *, size_t) |
__attribute__ ((__bounded__(__buffer__,1,3))) |
__attribute__ ((__bounded__(__buffer__,1,3))) |
|
|
__attribute__ ((__bounded__(__buffer__,1,2))); |
__attribute__ ((__bounded__(__buffer__,1,2))); |
int ffs(int); |
int ffs(int); |
char *index(const char *, int); |
char *index(const char *, int); |
void *memccpy(void *, const void *, int, size_t) |
|
__attribute__ ((__bounded__(__buffer__,1,4))); |
|
char *rindex(const char *, int); |
char *rindex(const char *, int); |
int strcasecmp(const char *, const char *); |
int strcasecmp(const char *, const char *); |
|
int strncasecmp(const char *, const char *, size_t); |
char *strdup(const char *); |
char *strdup(const char *); |
|
#endif |
|
|
|
#if __BSD_VISIBLE || __XPG_VISIBLE >= 600 |
|
int strerror_r(int, char *, size_t) |
|
__attribute__ ((__bounded__(__string__,2,3))); |
|
#endif |
|
|
|
#if __BSD_VISIBLE |
char *strcasestr(const char *, const char *); |
char *strcasestr(const char *, const char *); |
size_t strlcat(char *, const char *, size_t) |
size_t strlcat(char *, const char *, size_t) |
__attribute__ ((__bounded__(__string__,1,3))); |
__attribute__ ((__bounded__(__string__,1,3))); |
size_t strlcpy(char *, const char *, size_t) |
size_t strlcpy(char *, const char *, size_t) |
__attribute__ ((__bounded__(__string__,1,3))); |
__attribute__ ((__bounded__(__string__,1,3))); |
void strmode(int, char *); |
void strmode(int, char *); |
int strncasecmp(const char *, const char *, size_t); |
|
char *strsep(char **, const char *); |
char *strsep(char **, const char *); |
char *strsignal(int); |
char *strsignal(int); |
#endif |
#endif |