00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef _STRING_H_
00039 #define _STRING_H_
00040
00041 #include <sys/cdefs.h>
00042 #include <sys/_null.h>
00043 #include <sys/_types.h>
00044
00045 #ifdef __SYMBIAN32__
00046 #include <_ansi.h>
00047 #endif
00048
00049
00050
00051
00052 #if __BSD_VISIBLE
00053 #include <strings.h>
00054 #endif
00055
00056 #ifndef _SIZE_T_DECLARED
00057 typedef __size_t size_t;
00058 #define _SIZE_T_DECLARED
00059 #endif
00060
00061 __BEGIN_DECLS
00062 #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
00063 IMPORT_C
00064 void *memccpy(void * __restrict, const void * __restrict, int, size_t);
00065 #endif
00066 IMPORT_C
00067 void *memchr(const void *, int, size_t) __pure;
00068 IMPORT_C
00069 int memcmp(const void *, const void *, size_t) __pure;
00070 IMPORT_C
00071 void *memcpy(void * __restrict, const void * __restrict, size_t);
00072 IMPORT_C
00073 void *memmove(void *, const void *, size_t);
00074 IMPORT_C
00075 void *memset(void *, int, size_t);
00076 #if __BSD_VISIBLE
00077 IMPORT_C
00078 char *stpcpy(char *, const char *);
00079 IMPORT_C
00080 char *strcasestr(const char *, const char *) __pure;
00081 #endif
00082 IMPORT_C
00083 char *strcat(char * __restrict, const char * __restrict);
00084 IMPORT_C
00085 char *strchr(const char *, int) __pure;
00086 IMPORT_C
00087 int strcmp(const char *, const char *) __pure;
00088 IMPORT_C
00089 int strcoll(const char *, const char *);
00090 IMPORT_C
00091 char *strcpy(char * __restrict, const char * __restrict);
00092 IMPORT_C
00093 size_t strcspn(const char *, const char *) __pure;
00094 #if __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
00095 IMPORT_C
00096 char *strdup(const char *);
00097 #endif
00098 IMPORT_C
00099 char *strndup(const char *,size_t);
00100 IMPORT_C
00101 size_t strnlen(const char *,size_t);
00102 IMPORT_C
00103 char *strerror(int);
00104 #if __POSIX_VISIBLE >= 200112
00105 IMPORT_C
00106 int strerror_r(int, char *, size_t);
00107 #endif
00108 #if __BSD_VISIBLE
00109 IMPORT_C size_t strlcat(char *, const char *, size_t);
00110 IMPORT_C size_t strlcpy(char *, const char *, size_t);
00111 #endif
00112 IMPORT_C
00113 size_t strlen(const char *) __pure;
00114 IMPORT_C
00115 char *strncat(char * __restrict, const char * __restrict, size_t);
00116 IMPORT_C
00117 int strncmp(const char *, const char *, size_t) __pure;
00118 IMPORT_C
00119 char *strncpy(char * __restrict, const char * __restrict, size_t);
00120 #if __BSD_VISIBLE
00121 char *strnstr(const char *, const char *, size_t) __pure;
00122 #endif
00123 IMPORT_C
00124 char *strpbrk(const char *, const char *) __pure;
00125 IMPORT_C
00126 char *strrchr(const char *, int) __pure;
00127 #if __BSD_VISIBLE
00128 IMPORT_C
00129 char *strsep(char **, const char *);
00130 #endif
00131 IMPORT_C
00132 size_t strspn(const char *, const char *) __pure;
00133 IMPORT_C
00134 char *strstr(const char *, const char *) __pure;
00135 IMPORT_C
00136 char *strtok(char * __restrict, const char * __restrict);
00137 #if __POSIX_VISIBLE >= 199506 || __XSI_VISIBLE >= 500
00138 IMPORT_C
00139 char *strtok_r(char *, const char *, char **);
00140 #endif
00141 IMPORT_C
00142 size_t strxfrm(char * __restrict, const char * __restrict, size_t);
00143 #if __BSD_VISIBLE
00144
00145 #ifndef _SWAB_DECLARED
00146 #define _SWAB_DECLARED
00147
00148 #ifndef _SSIZE_T_DECLARED
00149 typedef __ssize_t ssize_t;
00150 #define _SSIZE_T_DECLARED
00151 #endif
00152
00153 IMPORT_C
00154 void swab(const void * __restrict, void * __restrict, ssize_t);
00155 #endif
00156
00157 #endif
00158 __END_DECLS
00159
00160 #endif