mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 17:13:51 +00:00
Create a branch for network fixes.
svn path=/branches/aicom-network-fixes/; revision=34994
This commit is contained in:
parent
0e213bbc00
commit
c501d8112c
18148 changed files with 0 additions and 860488 deletions
33
lib/sdk/crt/string/strxfrm.c
Normal file
33
lib/sdk/crt/string/strxfrm.c
Normal file
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: lib/crt/??????
|
||||
* PURPOSE: Unknown
|
||||
* PROGRAMER: Unknown
|
||||
* UPDATE HISTORY:
|
||||
* 25/11/05: Added license header
|
||||
*/
|
||||
|
||||
#include <precomp.h>
|
||||
|
||||
#if 1
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue