Commit 28884a8f authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

msvcrt: Implemented _ltoa_s.

parent 4a1d9c3b
......@@ -862,9 +862,9 @@
@ cdecl _lseek(long long long) msvcrt._lseek
@ cdecl -ret64 _lseeki64(long int64 long) msvcrt._lseeki64
@ cdecl _ltoa(long ptr long) msvcrt._ltoa
@ stub _ltoa_s
@ cdecl _ltoa_s(long ptr long long) msvcrt._ltoa_s
@ cdecl _ltow(long ptr long) msvcrt._ltow
@ stub _ltow_s
@ cdecl _ltow_s(long ptr long long) msvcrt._ltow_s
@ cdecl _makepath(ptr str str str str) msvcrt._makepath
@ cdecl _makepath_s(ptr long str str str str) msvcrt._makepath_s
@ cdecl _malloc_crt(long) msvcrt.malloc
......
......@@ -708,9 +708,9 @@
@ cdecl _lseek(long long long) msvcrt._lseek
@ cdecl -ret64 _lseeki64(long int64 long) msvcrt._lseeki64
@ cdecl _ltoa(long ptr long) msvcrt._ltoa
@ stub _ltoa_s
@ cdecl _ltoa_s(long ptr long long) msvcrt._ltoa_s
@ cdecl _ltow(long ptr long) msvcrt._ltow
@ stub _ltow_s
@ cdecl _ltow_s(long ptr long long) msvcrt._ltow_s
@ cdecl _makepath(ptr str str str str) msvcrt._makepath
@ cdecl _makepath_s(ptr long str str str str) msvcrt._makepath_s
@ cdecl _malloc_crt(long) msvcrt.malloc
......
......@@ -696,9 +696,9 @@
@ cdecl _lseek(long long long) msvcrt._lseek
@ cdecl -ret64 _lseeki64(long int64 long) msvcrt._lseeki64
@ cdecl _ltoa(long ptr long) msvcrt._ltoa
@ stub _ltoa_s
@ cdecl _ltoa_s(long ptr long long) msvcrt._ltoa_s
@ cdecl _ltow(long ptr long) msvcrt._ltow
@ stub _ltow_s
@ cdecl _ltow_s(long ptr long long) msvcrt._ltow_s
@ cdecl _makepath(ptr str str str str) msvcrt._makepath
@ cdecl _makepath_s(ptr long str str str str) msvcrt._makepath_s
@ cdecl _malloc_crt(long) msvcrt.malloc
......
......@@ -639,9 +639,9 @@
@ cdecl _lseek(long long long) MSVCRT__lseek
@ cdecl -ret64 _lseeki64(long int64 long) MSVCRT__lseeki64
@ cdecl _ltoa(long ptr long) ntdll._ltoa
# stub _ltoa_s
@ cdecl _ltoa_s(long ptr long long) ntdll._ltoa_s
@ cdecl _ltow(long ptr long) ntdll._ltow
# stub _ltow_s
@ cdecl _ltow_s(long ptr long long) ntdll._ltow_s
@ cdecl _makepath(ptr str str str str)
@ cdecl _makepath_s(ptr long str str str str)
# stub _malloc_dbg
......
......@@ -709,11 +709,12 @@ unsigned __int64 CDECL MSVCRT_strtoui64(const char *nptr, char **endptr, int bas
}
/*********************************************************************
* _itoa_s (MSVCRT.@)
* _ltoa_s (MSVCRT.@)
*/
int CDECL _itoa_s(int value, char *str, MSVCRT_size_t size, int radix)
int CDECL _ltoa_s(MSVCRT_long value, char *str, MSVCRT_size_t size, int radix)
{
unsigned int val, digit;
MSVCRT_ulong val;
unsigned int digit;
int is_negative;
char buffer[33], *pos;
size_t len;
......@@ -786,11 +787,12 @@ int CDECL _itoa_s(int value, char *str, MSVCRT_size_t size, int radix)
}
/*********************************************************************
* _itow_s (MSVCRT.@)
* _ltow_s (MSVCRT.@)
*/
int CDECL _itow_s(int value, MSVCRT_wchar_t *str, MSVCRT_size_t size, int radix)
int CDECL _ltow_s(MSVCRT_long value, MSVCRT_wchar_t *str, MSVCRT_size_t size, int radix)
{
unsigned int val, digit;
MSVCRT_ulong val;
unsigned int digit;
int is_negative;
MSVCRT_wchar_t buffer[33], *pos;
size_t len;
......@@ -863,6 +865,22 @@ int CDECL _itow_s(int value, MSVCRT_wchar_t *str, MSVCRT_size_t size, int radix)
}
/*********************************************************************
* _itoa_s (MSVCRT.@)
*/
int CDECL _itoa_s(int value, char *str, MSVCRT_size_t size, int radix)
{
return _ltoa_s(value, str, size, radix);
}
/*********************************************************************
* _itow_s (MSVCRT.@)
*/
int CDECL _itow_s(int value, MSVCRT_wchar_t *str, MSVCRT_size_t size, int radix)
{
return _ltow_s(value, str, size, radix);
}
/*********************************************************************
* _ui64toa_s (MSVCRT.@)
*/
int CDECL MSVCRT__ui64toa_s(unsigned __int64 value, char *str,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment