mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 05:55:42 +00:00
Create a branch for header work.
svn path=/branches/header-work/; revision=45691
This commit is contained in:
parent
14fe274b1c
commit
9ea495ba33
19538 changed files with 0 additions and 1063950 deletions
70
lib/sdk/crt/string/wtoi64.c
Normal file
70
lib/sdk/crt/string/wtoi64.c
Normal file
|
@ -0,0 +1,70 @@
|
|||
/*
|
||||
* 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>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
__int64
|
||||
_wtoi64 (const wchar_t *nptr)
|
||||
{
|
||||
int c;
|
||||
__int64 value;
|
||||
int sign;
|
||||
|
||||
if (nptr == NULL)
|
||||
return 0;
|
||||
|
||||
while (iswctype((int)*nptr, _SPACE))
|
||||
++nptr;
|
||||
|
||||
c = (int)*nptr++;
|
||||
sign = c;
|
||||
if (c == L'-' || c == L'+')
|
||||
c = (int)*nptr++;
|
||||
|
||||
value = 0;
|
||||
|
||||
while (iswctype(c, _DIGIT))
|
||||
{
|
||||
value = 10 * value + (c - L'0');
|
||||
c = (int)*nptr++;
|
||||
}
|
||||
|
||||
if (sign == L'-')
|
||||
return -value;
|
||||
else
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
__int64
|
||||
_wcstoi64 (const wchar_t *nptr, wchar_t **endptr, int base)
|
||||
{
|
||||
TRACE("_wcstoi64 is UNIMPLEMENTED\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* @unimplemented
|
||||
*/
|
||||
unsigned __int64
|
||||
_wcstoui64 (const wchar_t *nptr, wchar_t **endptr, int base)
|
||||
{
|
||||
TRACE("_wcstoui64 is UNIMPLEMENTED\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/* EOF */
|
Loading…
Add table
Add a link
Reference in a new issue