ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

wtoi64.c
Go to the documentation of this file.
00001 /*
00002  * COPYRIGHT:   See COPYING in the top level directory
00003  * PROJECT:     ReactOS system libraries
00004  * FILE:        lib/crt/??????
00005  * PURPOSE:     Unknown
00006  * PROGRAMER:   Unknown
00007  * UPDATE HISTORY:
00008  *              25/11/05: Added license header
00009  */
00010 
00011 #include <precomp.h>
00012 
00013 /*
00014  * @implemented
00015  */
00016 __int64
00017 _wtoi64 (const wchar_t *nptr)
00018 {
00019    int c;
00020    __int64 value;
00021    int sign;
00022 
00023    if (nptr == NULL)
00024        return 0;
00025 
00026    while (iswctype((int)*nptr, _SPACE))
00027         ++nptr;
00028 
00029    c = (int)*nptr++;
00030    sign = c;
00031    if (c == L'-' || c == L'+')
00032         c = (int)*nptr++;
00033 
00034    value = 0;
00035 
00036    while (iswctype(c, _DIGIT))
00037      {
00038         value = 10 * value + (c - L'0');
00039         c = (int)*nptr++;
00040      }
00041 
00042    if (sign == L'-')
00043        return -value;
00044    else
00045        return value;
00046 }
00047 
00048 
00049 /*
00050  * @unimplemented
00051  */
00052 __int64
00053 _wcstoi64 (const wchar_t *nptr, wchar_t **endptr, int base)
00054 {
00055    TRACE("_wcstoi64 is UNIMPLEMENTED\n");
00056    return 0;
00057 }
00058 
00059 /*
00060  * @unimplemented
00061  */
00062 unsigned __int64
00063 _wcstoui64 (const wchar_t *nptr, wchar_t **endptr, int base)
00064 {
00065    TRACE("_wcstoui64 is UNIMPLEMENTED\n");
00066    return 0;
00067 }
00068 
00069 
00070 /* EOF */

Generated on Mon May 28 2012 04:36:32 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.