3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * FILE: lib/ntdll/stdlib/wtoi64.c
6 * PURPOSE: converts a unicode string to 64 bit integer
16 _wtoi64 (const wchar_t *nptr)
22 while (iswctype((int)*nptr, _SPACE))
27 if (c == L'-' || c == L'+')
32 while (iswctype(c, _DIGIT))
34 value = 10 * value + (c - L'0');