mirror of
https://github.com/reactos/reactos.git
synced 2025-07-15 07:04:05 +00:00
22 lines
388 B
C
22 lines
388 B
C
#include <windows.h>
|
|
#include <msvcrt/string.h>
|
|
|
|
#if 1
|
|
size_t strxfrm( char *dest, const char *src, size_t n )
|
|
{
|
|
strncpy(dest, src, n);
|
|
return (strlen(dest));
|
|
}
|
|
#else
|
|
size_t strxfrm( char *dest, const char *src, size_t n )
|
|
{
|
|
int ret = LCMapStringA(LOCALE_USER_DEFAULT,LCMAP_LOWERCASE,
|
|
src, strlen(src),
|
|
dest, strlen(dest) );
|
|
|
|
if ( ret == 0 )
|
|
return -1;
|
|
return ret;
|
|
|
|
}
|
|
#endif
|