mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:33:16 +00:00

- Change Unicode string functions from wcs* to str*W because glibc (Linux build) provides the wcs* functions but they use a wchar_t size of 32 bits instead of the required 16 bits. - Add a str*W to wcs* wrapper (infrosrtl.c) in order to use the wcs* function for the WIN32 build. - Add required str*W functions to the host library. ATTENTION: This might break the build bot although it has been tested on Windows and Linux!!! svn path=/trunk/; revision=47071
51 lines
820 B
C
51 lines
820 B
C
/*
|
|
* PROJECT: .inf file parser
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* PROGRAMMER: Eric Kohl
|
|
*/
|
|
|
|
/* INCLUDES *****************************************************************/
|
|
|
|
#include "inflib.h"
|
|
#include "infhost.h"
|
|
|
|
#define NDEBUG
|
|
#include <debug.h>
|
|
|
|
|
|
/* FUNCTIONS ****************************************************************/
|
|
|
|
INT isspaceW(WCHAR c)
|
|
{
|
|
return iswspace(c);
|
|
}
|
|
|
|
INT strlenW(PCWSTR s)
|
|
{
|
|
return wcslen(s);
|
|
}
|
|
|
|
PWSTR strcpyW(PWSTR d, PCWSTR s)
|
|
{
|
|
return wcscpy(d, s);
|
|
}
|
|
|
|
PWSTR strncpyW(PWSTR d, PCWSTR s, SIZE_T c)
|
|
{
|
|
return wcsncpy(d, s, c);
|
|
}
|
|
|
|
INT strcmpiW(PCWSTR s1, PCWSTR s2)
|
|
{
|
|
return wcsicmp(s1, s2);
|
|
}
|
|
|
|
LONG strtolW(PCWSTR s, PWSTR *e, INT r)
|
|
{
|
|
return wcstol(s, e, r);
|
|
}
|
|
|
|
ULONG strtoulW(PCWSTR s, PWSTR *e, INT r)
|
|
{
|
|
return wcstoul(s, e, r);
|
|
}
|