Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: TFT_fonts mbed-os
Fork of newTFTLCD by
STRING.h
00001 00002 /* 00003 * string.h 00004 * 00005 * Definitions for memory and string functions. 00006 * 00007 * This file is part of the Mingw32 package. 00008 * 00009 * Contributors: 00010 * Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp> 00011 * 00012 * THIS SOFTWARE IS NOT COPYRIGHTED 00013 * 00014 * This source code is offered for use in the public domain. You may 00015 * use, modify or distribute it freely. 00016 * 00017 * This code is distributed in the hope that it will be useful but 00018 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY 00019 * DISCLAMED. This includes but is not limited to warranties of 00020 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00021 * 00022 * $Revision: 1.6 $ 00023 * $Author: cgf $ 00024 * $Date: 2000/02/05 04:04:57 $ 00025 * 00026 */ 00027 00028 #ifndef _STRING_H_ 00029 #define _STRING_H_ 00030 00031 /* All the headers include this file. */ 00032 #include <_mingw.h> 00033 00034 /* 00035 * Define size_t, wchar_t and NULL 00036 */ 00037 #define __need_size_t 00038 #define __need_wchar_t 00039 #define __need_NULL 00040 #ifndef RC_INVOKED 00041 #include <stddef.h> 00042 #endif /* Not RC_INVOKED */ 00043 00044 #ifndef RC_INVOKED 00045 00046 #ifdef __cplusplus 00047 extern "C" { 00048 #endif 00049 00050 /* 00051 * Prototypes of the ANSI Standard C library string functions. 00052 */ 00053 void* memchr (const void*, int, size_t); 00054 int memcmp (const void*, const void*, size_t); 00055 void* memcpy (void*, const void*, size_t); 00056 void* memmove (void*, const void*, size_t); 00057 void* memset (void*, int, size_t); 00058 char* strcat (char*, const char*); 00059 char* strchr (const char*, int); 00060 int strcmp (const char*, const char*); 00061 int strcoll (const char*, const char*); /* Compare using locale */ 00062 char* strcpy (char*, const char*); 00063 size_t strcspn (const char*, const char*); 00064 char* strerror (int); /* NOTE: NOT an old name wrapper. */ 00065 char* _strerror (const char *); 00066 size_t strlen (const char*); 00067 char* strncat (char*, const char*, size_t); 00068 int strncmp (const char*, const char*, size_t); 00069 char* strncpy (char*, const char*, size_t); 00070 char* strpbrk (const char*, const char*); 00071 char* strrchr (const char*, int); 00072 size_t strspn (const char*, const char*); 00073 char* strstr (const char*, const char*); 00074 char* strtok (char*, const char*); 00075 size_t strxfrm (char*, const char*, size_t); 00076 00077 #ifndef __STRICT_ANSI__ 00078 /* 00079 * Extra non-ANSI functions provided by the CRTDLL library 00080 */ 00081 void* _memccpy (void*, const void*, int, size_t); 00082 int _memicmp (const void*, const void*, size_t); 00083 char* _strdup (const char*); 00084 int _strcmpi (const char*, const char*); 00085 int _stricmp (const char*, const char*); 00086 int _stricoll (const char*, const char*); 00087 char* _strlwr (char*); 00088 int _strnicmp (const char*, const char*, size_t); 00089 char* _strnset (char*, int, size_t); 00090 char* _strrev (char*); 00091 char* _strset (char*, int); 00092 char* _strupr (char*); 00093 void _swab (const char*, char*, size_t); 00094 00095 /* 00096 * Multi-byte character functions 00097 */ 00098 unsigned char* _mbschr (unsigned char*, unsigned char*); 00099 unsigned char* _mbsncat (unsigned char*, const unsigned char*, size_t); 00100 unsigned char* _mbstok (unsigned char*, unsigned char*); 00101 00102 #ifdef __MSVCRT__ 00103 int _strncoll(const char*, const char*, size_t); 00104 int _strnicoll(const char*, const char*, size_t); 00105 #endif 00106 00107 #endif /* Not __STRICT_ANSI__ */ 00108 00109 /* 00110 * Unicode versions of the standard calls. 00111 */ 00112 wchar_t* wcscat (wchar_t*, const wchar_t*); 00113 wchar_t* wcschr (const wchar_t*, wchar_t); 00114 int wcscmp (const wchar_t*, const wchar_t*); 00115 int wcscoll (const wchar_t*, const wchar_t*); 00116 wchar_t* wcscpy (wchar_t*, const wchar_t*); 00117 size_t wcscspn (const wchar_t*, const wchar_t*); 00118 /* Note: No wcserror in CRTDLL. */ 00119 size_t wcslen (const wchar_t*); 00120 wchar_t* wcsncat (wchar_t*, const wchar_t*, size_t); 00121 int wcsncmp(const wchar_t*, const wchar_t*, size_t); 00122 wchar_t* wcsncpy(wchar_t*, const wchar_t*, size_t); 00123 wchar_t* wcspbrk(const wchar_t*, const wchar_t*); 00124 wchar_t* wcsrchr(const wchar_t*, wchar_t); 00125 size_t wcsspn(const wchar_t*, const wchar_t*); 00126 wchar_t* wcsstr(const wchar_t*, const wchar_t*); 00127 wchar_t* wcstok(wchar_t*, const wchar_t*); 00128 size_t wcsxfrm(wchar_t*, const wchar_t*, size_t); 00129 00130 #ifndef __STRICT_ANSI__ 00131 /* 00132 * Unicode versions of non-ANSI functions provided by CRTDLL. 00133 */ 00134 00135 /* NOTE: _wcscmpi not provided by CRTDLL, this define is for portability */ 00136 #define _wcscmpi _wcsicmp 00137 00138 wchar_t* _wcsdup (wchar_t*); 00139 int _wcsicmp (const wchar_t*, const wchar_t*); 00140 int _wcsicoll (const wchar_t*, const wchar_t*); 00141 wchar_t* _wcslwr (wchar_t*); 00142 int _wcsnicmp (const wchar_t*, const wchar_t*, size_t); 00143 wchar_t* _wcsnset (wchar_t*, wchar_t, size_t); 00144 wchar_t* _wcsrev (wchar_t*); 00145 wchar_t* _wcsset (wchar_t*, wchar_t); 00146 wchar_t* _wcsupr (wchar_t*); 00147 00148 #ifdef __MSVCRT__ 00149 int _wcsncoll(const wchar_t*, const wchar_t*, size_t); 00150 int _wcsnicoll(const wchar_t*, const wchar_t*, size_t); 00151 #endif 00152 00153 00154 #endif /* Not __STRICT_ANSI__ */ 00155 00156 00157 #ifndef __STRICT_ANSI__ 00158 #ifndef _NO_OLDNAMES 00159 00160 /* 00161 * Non-underscored versions of non-ANSI functions. They live in liboldnames.a 00162 * and provide a little extra portability. Also a few extra UNIX-isms like 00163 * strcasecmp. 00164 */ 00165 00166 void* memccpy (void*, const void*, int, size_t); 00167 int memicmp (const void*, const void*, size_t); 00168 char* strdup (const char*); 00169 int strcmpi (const char*, const char*); 00170 int stricmp (const char*, const char*); 00171 int strcasecmp (const char*, const char*); 00172 int stricoll (const char*, const char*); 00173 char* strlwr (char*); 00174 int strnicmp (const char*, const char*, size_t); 00175 int strncasecmp (const char*, const char*, size_t); 00176 char* strnset (char*, int, size_t); 00177 char* strrev (char*); 00178 char* strset (char*, int); 00179 char* strupr (char*); 00180 #ifndef _UWIN 00181 void swab (const char*, char*, size_t); 00182 #endif /* _UWIN */ 00183 00184 /* NOTE: There is no _wcscmpi, but this is for compatibility. */ 00185 int wcscmpi (const wchar_t*, const wchar_t*); 00186 wchar_t* wcsdup (wchar_t*); 00187 int wcsicmp (const wchar_t*, const wchar_t*); 00188 int wcsicoll (const wchar_t*, const wchar_t*); 00189 wchar_t* wcslwr (wchar_t*); 00190 int wcsnicmp (const wchar_t*, const wchar_t*, size_t); 00191 wchar_t* wcsnset (wchar_t*, wchar_t, size_t); 00192 wchar_t* wcsrev (wchar_t*); 00193 wchar_t* wcsset (wchar_t*, wchar_t); 00194 wchar_t* wcsupr (wchar_t*); 00195 00196 #endif /* Not _NO_OLDNAMES */ 00197 #endif /* Not strict ANSI */ 00198 00199 00200 #ifdef __cplusplus 00201 } 00202 #endif 00203 00204 #endif /* Not RC_INVOKED */ 00205 00206 #endif /* Not _STRING_H_ */ 00207 00208
Generated on Tue Jul 12 2022 16:01:48 by
