mirror of
https://github.com/reactos/reactos.git
synced 2024-11-07 15:10:53 +00:00
c501d8112c
svn path=/branches/aicom-network-fixes/; revision=34994
45 lines
738 B
C
45 lines
738 B
C
/*
|
|
* 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;
|
|
|
|
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;
|
|
}
|
|
|
|
/* EOF */
|