windows-nt/Source/XPSP1/NT/base/crts/crtw32/convert/wtox.c

31 lines
929 B
C
Raw Normal View History

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