Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
929 B

  1. /***
  2. *wtox.c - _wtoi and _wtol conversion
  3. *
  4. * Copyright (c) 1993-2001, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. * Converts a wide character string into an int or long.
  8. *
  9. *Revision History:
  10. * 09-10-93 CFW Module created, based on ASCII version.
  11. * 10-07-93 CFW Optimize WideCharToMultiByte, use NULL default char.
  12. * 02-07-94 CFW POSIXify.
  13. * 03-13-95 CFW Use -1 for length since NT compares past NULLS.
  14. * 01-19-96 BWT Add __int64 versions.
  15. * 05-13-96 BWT Fix _NTSUBSET_ version
  16. * 11-03-76 JWM Fix buffer-size bug in __int64 version.
  17. * 05-23-00 GB Using ascii version with tchar macros for UNICODE
  18. * version.
  19. *
  20. *******************************************************************************/
  21. #ifndef _POSIX_
  22. #ifndef _UNICODE
  23. #define _UNICODE
  24. #endif
  25. #include <wchar.h>
  26. #include "atox.c"
  27. #endif /* _POSIX_ */