Public feed
#893209
/* * string.h * This file has no copyright assigned and is placed in the Public Domain. * This file is a part of the mingw-runtime package. * No warranty is given; refer to the file DISCLAIMER within the package. * * Definitions for memory and string functions. * */#ifndef _STRING_H_#define _STRING_H_/* All the headers include this file. */#include <_mingw.h>/* * Define size_t, wchar_t and NULL */#define __need_size_t#define __need_wchar_t#define __need_NULL#ifndef RC_INVOKED#include <stddef.h>#endif /* Not RC_INVOKED */#ifndef RC_INVOKED#ifdef __cplusplusextern "C" {#endif/* * Prototypes of the ANSI Standard C library string functions. */void* memchr (const void*, int, size_t);int memcmp (const void*, const void*, size_t);void* memcpy (void*, const void*, size_t);void* memmove (void*, const void*, size_t);void* memset (void*, int, size_t);char* strcat (char*, const char*);char* strchr (const char*, int) ;int strcmp (const char*, const char*) ;int strcoll (const char*, const char*); /* Compare using locale */char* strcpy (char*, const char*);size_t strcspn (const char*, const char*) ;char* strerror (int); /* NOTE: NOT an old name wrapper. */size_t strlen (const char*) ;char* strncat (char*, const char*, size_t);int strncmp (const char*, const char*, size_t) ;char* strncpy (char*, const char*, size_t);char* strpbrk (const char*, const char*) ;char* strrchr (const char*, int) ;size_t strspn (const char*, const char*) ;char* strstr (const char*, const char*) ;char* strtok (char*, const char*);size_t strxfrm (char*, const char*, size_t);#ifndef __STRICT_ANSI__/* * Extra non-ANSI functions provided by the CRTDLL library */char* _strerror (const char *);void* _memccpy (void*, const void*, int, size_t);int _memicmp (const void*, const void*, size_t);char* _strdup (const char*);int _strcmpi (const char*, const char*);int _stricmp (const char*, const char*);int _stricoll (const char*, const char*);char* _strlwr (char*);int _strnicmp (const char*, const char*, size_t);char* _strnset (char*, int, size_t);char* _strrev (char*);char* _strset (char*, int);char* _strupr (char*);void _swab (const char*, char*, size_t);#ifdef __MSVCRT__int _strncoll(const char*, const char*, size_t);int _strnicoll(const char*, const char*, size_t);#endif#ifndef _NO_OLDNAMES/* * Non-underscored versions of non-ANSI functions. They live in liboldnames.a * and provide a little extra portability. Also a few extra UNIX-isms like * strcasecmp. */void* memccpy (void*, const void*, int, size_t);int memicmp (const void*, const void*, size_t);char* strdup (const char*);int strcmpi (const char*, const char*);int stricmp (const char*, const char*);__CRT_INLINE int __cdeclstrcasecmp (const char * __sz1, const char * __sz2) {return _stricmp (__sz1, __sz2);}int stricoll (const char*, const char*);char* strlwr (char*);int strnicmp (const char*, const char*, size_t);__CRT_INLINE int __cdeclstrncasecmp (const char * __sz1, const char * __sz2, size_t __sizeMaxCompare) {return _strnicmp (__sz1, __sz2, __sizeMaxCompare);}char* strnset (char*, int, size_t);char* strrev (char*);char* strset (char*, int);char* strupr (char*);#ifndef _UWINvoid swab (const char*, char*, size_t);#endif /* _UWIN */#endif /* _NO_OLDNAMES */#endif /* Not __STRICT_ANSI__ */#ifndef _WSTRING_DEFINED/* * Unicode versions of the standard calls. * Also in wchar.h, where they belong according to ISO standard. */wchar_t* wcscat (wchar_t*, const wchar_t*);wchar_t* wcschr (const wchar_t*, wchar_t);int wcscmp (const wchar_t*, const wchar_t*);int wcscoll (const wchar_t*, const wchar_t*);wchar_t* wcscpy (wchar_t*, const wchar_t*);size_t wcscspn (const wchar_t*, const wchar_t*);/* Note: _wcserror requires __MSVCRT_VERSION__ >= 0x0700. */size_t wcslen (const wchar_t*);wchar_t* wcsncat (wchar_t*, const wchar_t*, size_t);int wcsncmp(const wchar_t*, const wchar_t*, size_t);wchar_t* wcsncpy(wchar_t*, const wchar_t*, size_t);wchar_t* wcspbrk(const wchar_t*, const wchar_t*);wchar_t* wcsrchr(const wchar_t*, wchar_t);size_t wcsspn(const wchar_t*, const wchar_t*);wchar_t* wcsstr(const wchar_t*, const wchar_t*);wchar_t* wcstok(wchar_t*, const wchar_t*);size_t wcsxfrm(wchar_t*, const wchar_t*, size_t);#ifndef __STRICT_ANSI__/* * Unicode versions of non-ANSI string functions provided by CRTDLL. *//* NOTE: _wcscmpi not provided by CRTDLL, this define is for portability */#define _wcscmpi _wcsicmpwchar_t* _wcsdup (const wchar_t*);int _wcsicmp (const wchar_t*, const wchar_t*);int _wcsicoll (const wchar_t*, const wchar_t*);wchar_t* _wcslwr (wchar_t*);int _wcsnicmp (const wchar_t*, const wchar_t*, size_t);wchar_t* _wcsnset (wchar_t*, wchar_t, size_t);wchar_t* _wcsrev (wchar_t*);wchar_t* _wcsset (wchar_t*, wchar_t);wchar_t* _wcsupr (wchar_t*);#ifdef __MSVCRT__int _wcsncoll(const wchar_t*, const wchar_t*, size_t);int _wcsnicoll(const wchar_t*, const wchar_t*, size_t);#if __MSVCRT_VERSION__ >= 0x0700 wchar_t* _wcserror(int); wchar_t* __wcserror(const wchar_t*);#endif#endif#ifndef _NO_OLDNAMES/* NOTE: There is no _wcscmpi, but this is for compatibility. */int wcscmpi (const wchar_t * __ws1, const wchar_t * __ws2);__CRT_INLINE int __cdeclwcscmpi (const wchar_t * __ws1, const wchar_t * __ws2) {return _wcsicmp (__ws1, __ws2);}wchar_t* wcsdup (const wchar_t*);int wcsicmp (const wchar_t*, const wchar_t*);int wcsicoll (const wchar_t*, const wchar_t*);wchar_t* wcslwr (wchar_t*);int wcsnicmp (const wchar_t*, const wchar_t*, size_t);wchar_t* wcsnset (wchar_t*, wchar_t, size_t);wchar_t* wcsrev (wchar_t*);wchar_t* wcsset (wchar_t*, wchar_t);wchar_t* wcsupr (wchar_t*);#endif /* Not _NO_OLDNAMES */#endif /* Not strict ANSI */#define _WSTRING_DEFINED#endif /* _WSTRING_DEFINED */#ifdef __cplusplus}#endif#endif /* Not RC_INVOKED */#endif /* Not _STRING_H_ */