[CRT]
- Update file.c to recent wine. (now with locking!)
- implement/enable __wcserror, __wcserror_s, _access_s, _ctime32_s, _ctime64_s,
_cwprintf, _fseeki64, _ftelli64, _get_osplatform, _get_output_format,
_get_pgmptr, _get_wpgmptr, _get_terminate, _get_tzname, _get_unexpected,
_gmtime64_s, _i64toa_s, _i64tow_s, _initterm_e, _itoa_s, _itow_s,
_localtime32_s, _localtime64_s, _ltoa_s, _ltow_s, _putwch, _searchenv_s,
_sopen_s, _ui64toa_s, _ui64tow_s, _vcwprintf, _vsprintf_p, _waccess_s,
_wcserror, _wcserror_s, _wfopen_s, _wsopen_s, fopen_s, fprintf_s, fwprintf_s,
printf_s, strerror_s, strncpy_s, strtok_s, vfprintf_s, vfwprintf_s, vprintf_s,
vwprintf_s, wcscat_s, wcsncat_s, wcstok_s, wprintf_s. Most code comes from
wine.
- Fix __set_errno -> _set_errno and export it.
- Remove unneeded files.
[CRT_HEADERS]
- add threadmbcinfo struct.
- update some sec_api headers from mingw64 due to missing or incorrect
functions.
Patch by Samuel Serapion.
Changes to msvcrt spec by me due to winebuild.
CRLF/LF fixes.
svn path=/trunk/; revision=54651
2011-12-14 22:09:24 +00:00
|
|
|
/* taken from wine ntdll and msvcrt string.c */
|
|
|
|
|
2007-03-14 20:24:57 +00:00
|
|
|
#include <precomp.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
2007-11-08 21:06:20 +00:00
|
|
|
char *
|
2015-09-15 10:35:49 +00:00
|
|
|
CDECL
|
2007-11-08 21:06:20 +00:00
|
|
|
_i64toa(__int64 value, char *string, int radix)
|
2007-03-14 20:24:57 +00:00
|
|
|
{
|
2007-11-08 21:06:20 +00:00
|
|
|
ULONGLONG val;
|
|
|
|
int negative;
|
|
|
|
char buffer[65];
|
|
|
|
char *pos;
|
|
|
|
int digit;
|
|
|
|
|
|
|
|
if (value < 0 && radix == 10) {
|
|
|
|
negative = 1;
|
|
|
|
val = -value;
|
|
|
|
} else {
|
|
|
|
negative = 0;
|
|
|
|
val = value;
|
|
|
|
} /* if */
|
|
|
|
|
|
|
|
pos = &buffer[64];
|
|
|
|
*pos = '\0';
|
|
|
|
|
|
|
|
do {
|
|
|
|
digit = val % radix;
|
|
|
|
val = val / radix;
|
|
|
|
if (digit < 10) {
|
|
|
|
*--pos = '0' + digit;
|
|
|
|
} else {
|
|
|
|
*--pos = 'a' + digit - 10;
|
|
|
|
} /* if */
|
|
|
|
} while (val != 0L);
|
|
|
|
|
|
|
|
if (negative) {
|
|
|
|
*--pos = '-';
|
|
|
|
} /* if */
|
|
|
|
|
|
|
|
memcpy(string, pos, &buffer[64] - pos + 1);
|
|
|
|
return string;
|
2007-03-14 20:24:57 +00:00
|
|
|
}
|
|
|
|
|
[CRT]
- Update file.c to recent wine. (now with locking!)
- implement/enable __wcserror, __wcserror_s, _access_s, _ctime32_s, _ctime64_s,
_cwprintf, _fseeki64, _ftelli64, _get_osplatform, _get_output_format,
_get_pgmptr, _get_wpgmptr, _get_terminate, _get_tzname, _get_unexpected,
_gmtime64_s, _i64toa_s, _i64tow_s, _initterm_e, _itoa_s, _itow_s,
_localtime32_s, _localtime64_s, _ltoa_s, _ltow_s, _putwch, _searchenv_s,
_sopen_s, _ui64toa_s, _ui64tow_s, _vcwprintf, _vsprintf_p, _waccess_s,
_wcserror, _wcserror_s, _wfopen_s, _wsopen_s, fopen_s, fprintf_s, fwprintf_s,
printf_s, strerror_s, strncpy_s, strtok_s, vfprintf_s, vfwprintf_s, vprintf_s,
vwprintf_s, wcscat_s, wcsncat_s, wcstok_s, wprintf_s. Most code comes from
wine.
- Fix __set_errno -> _set_errno and export it.
- Remove unneeded files.
[CRT_HEADERS]
- add threadmbcinfo struct.
- update some sec_api headers from mingw64 due to missing or incorrect
functions.
Patch by Samuel Serapion.
Changes to msvcrt spec by me due to winebuild.
CRLF/LF fixes.
svn path=/trunk/; revision=54651
2011-12-14 22:09:24 +00:00
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
int CDECL _i64toa_s(__int64 value, char *str, size_t size, int radix)
|
|
|
|
{
|
|
|
|
unsigned __int64 val;
|
|
|
|
unsigned int digit;
|
|
|
|
int is_negative;
|
|
|
|
char buffer[65], *pos;
|
|
|
|
size_t len;
|
|
|
|
|
|
|
|
if (!MSVCRT_CHECK_PMT(str != NULL) || !MSVCRT_CHECK_PMT(size > 0) ||
|
|
|
|
!MSVCRT_CHECK_PMT(radix >= 2) || !MSVCRT_CHECK_PMT(radix <= 36))
|
|
|
|
{
|
|
|
|
if (str && size)
|
|
|
|
str[0] = '\0';
|
|
|
|
#ifndef _LIBCNT_
|
|
|
|
*_errno() = EINVAL;
|
|
|
|
#endif
|
|
|
|
return EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (value < 0 && radix == 10)
|
|
|
|
{
|
|
|
|
is_negative = 1;
|
|
|
|
val = -value;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
is_negative = 0;
|
|
|
|
val = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
pos = buffer + 64;
|
|
|
|
*pos = '\0';
|
|
|
|
|
|
|
|
do
|
|
|
|
{
|
|
|
|
digit = val % radix;
|
|
|
|
val /= radix;
|
|
|
|
|
|
|
|
if (digit < 10)
|
|
|
|
*--pos = '0' + digit;
|
|
|
|
else
|
|
|
|
*--pos = 'a' + digit - 10;
|
|
|
|
}
|
|
|
|
while (val != 0);
|
|
|
|
|
|
|
|
if (is_negative)
|
|
|
|
*--pos = '-';
|
|
|
|
|
|
|
|
len = buffer + 65 - pos;
|
|
|
|
if (len > size)
|
|
|
|
{
|
|
|
|
size_t i;
|
|
|
|
char *p = str;
|
|
|
|
|
|
|
|
/* Copy the temporary buffer backwards up to the available number of
|
|
|
|
* characters. Don't copy the negative sign if present. */
|
|
|
|
|
|
|
|
if (is_negative)
|
|
|
|
{
|
|
|
|
p++;
|
|
|
|
size--;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (pos = buffer + 63, i = 0; i < size; i++)
|
|
|
|
*p++ = *pos--;
|
|
|
|
|
|
|
|
str[0] = '\0';
|
2014-05-10 20:38:26 +00:00
|
|
|
MSVCRT_INVALID_PMT("str[size] is too small", ERANGE);
|
[CRT]
- Update file.c to recent wine. (now with locking!)
- implement/enable __wcserror, __wcserror_s, _access_s, _ctime32_s, _ctime64_s,
_cwprintf, _fseeki64, _ftelli64, _get_osplatform, _get_output_format,
_get_pgmptr, _get_wpgmptr, _get_terminate, _get_tzname, _get_unexpected,
_gmtime64_s, _i64toa_s, _i64tow_s, _initterm_e, _itoa_s, _itow_s,
_localtime32_s, _localtime64_s, _ltoa_s, _ltow_s, _putwch, _searchenv_s,
_sopen_s, _ui64toa_s, _ui64tow_s, _vcwprintf, _vsprintf_p, _waccess_s,
_wcserror, _wcserror_s, _wfopen_s, _wsopen_s, fopen_s, fprintf_s, fwprintf_s,
printf_s, strerror_s, strncpy_s, strtok_s, vfprintf_s, vfwprintf_s, vprintf_s,
vwprintf_s, wcscat_s, wcsncat_s, wcstok_s, wprintf_s. Most code comes from
wine.
- Fix __set_errno -> _set_errno and export it.
- Remove unneeded files.
[CRT_HEADERS]
- add threadmbcinfo struct.
- update some sec_api headers from mingw64 due to missing or incorrect
functions.
Patch by Samuel Serapion.
Changes to msvcrt spec by me due to winebuild.
CRLF/LF fixes.
svn path=/trunk/; revision=54651
2011-12-14 22:09:24 +00:00
|
|
|
return ERANGE;
|
|
|
|
}
|
|
|
|
|
|
|
|
memcpy(str, pos, len);
|
|
|
|
return 0;
|
|
|
|
}
|
2007-11-08 21:06:20 +00:00
|
|
|
|
2007-03-14 20:24:57 +00:00
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
2007-11-08 21:06:20 +00:00
|
|
|
char *
|
2015-09-15 10:35:49 +00:00
|
|
|
CDECL
|
2007-11-08 21:06:20 +00:00
|
|
|
_ui64toa(unsigned __int64 value, char *string, int radix)
|
2007-03-14 20:24:57 +00:00
|
|
|
{
|
2007-11-08 21:06:20 +00:00
|
|
|
char buffer[65];
|
|
|
|
char *pos;
|
|
|
|
int digit;
|
|
|
|
|
|
|
|
pos = &buffer[64];
|
|
|
|
*pos = '\0';
|
|
|
|
|
|
|
|
do {
|
|
|
|
digit = value % radix;
|
|
|
|
value = value / radix;
|
|
|
|
if (digit < 10) {
|
|
|
|
*--pos = '0' + digit;
|
|
|
|
} else {
|
|
|
|
*--pos = 'a' + digit - 10;
|
|
|
|
} /* if */
|
|
|
|
} while (value != 0L);
|
|
|
|
|
|
|
|
memcpy(string, pos, &buffer[64] - pos + 1);
|
|
|
|
return string;
|
2007-03-14 20:24:57 +00:00
|
|
|
}
|
|
|
|
|
[CRT]
- Update file.c to recent wine. (now with locking!)
- implement/enable __wcserror, __wcserror_s, _access_s, _ctime32_s, _ctime64_s,
_cwprintf, _fseeki64, _ftelli64, _get_osplatform, _get_output_format,
_get_pgmptr, _get_wpgmptr, _get_terminate, _get_tzname, _get_unexpected,
_gmtime64_s, _i64toa_s, _i64tow_s, _initterm_e, _itoa_s, _itow_s,
_localtime32_s, _localtime64_s, _ltoa_s, _ltow_s, _putwch, _searchenv_s,
_sopen_s, _ui64toa_s, _ui64tow_s, _vcwprintf, _vsprintf_p, _waccess_s,
_wcserror, _wcserror_s, _wfopen_s, _wsopen_s, fopen_s, fprintf_s, fwprintf_s,
printf_s, strerror_s, strncpy_s, strtok_s, vfprintf_s, vfwprintf_s, vprintf_s,
vwprintf_s, wcscat_s, wcsncat_s, wcstok_s, wprintf_s. Most code comes from
wine.
- Fix __set_errno -> _set_errno and export it.
- Remove unneeded files.
[CRT_HEADERS]
- add threadmbcinfo struct.
- update some sec_api headers from mingw64 due to missing or incorrect
functions.
Patch by Samuel Serapion.
Changes to msvcrt spec by me due to winebuild.
CRLF/LF fixes.
svn path=/trunk/; revision=54651
2011-12-14 22:09:24 +00:00
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
int CDECL _ui64toa_s(unsigned __int64 value, char *str,
|
|
|
|
size_t size, int radix)
|
|
|
|
{
|
|
|
|
char buffer[65], *pos;
|
|
|
|
int digit;
|
|
|
|
|
|
|
|
if (!MSVCRT_CHECK_PMT(str != NULL) || !MSVCRT_CHECK_PMT(size > 0) ||
|
|
|
|
!MSVCRT_CHECK_PMT(radix>=2) || !MSVCRT_CHECK_PMT(radix<=36)) {
|
|
|
|
#ifndef _LIBCNT_
|
|
|
|
*_errno() = EINVAL;
|
|
|
|
#endif
|
|
|
|
return EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
pos = buffer+64;
|
|
|
|
*pos = '\0';
|
|
|
|
|
|
|
|
do {
|
|
|
|
digit = value%radix;
|
|
|
|
value /= radix;
|
|
|
|
|
|
|
|
if(digit < 10)
|
|
|
|
*--pos = '0'+digit;
|
|
|
|
else
|
|
|
|
*--pos = 'a'+digit-10;
|
|
|
|
}while(value != 0);
|
|
|
|
|
|
|
|
if((unsigned)(buffer-pos+65) > size) {
|
2014-05-10 20:38:26 +00:00
|
|
|
MSVCRT_INVALID_PMT("str[size] is too small", EINVAL);
|
[CRT]
- Update file.c to recent wine. (now with locking!)
- implement/enable __wcserror, __wcserror_s, _access_s, _ctime32_s, _ctime64_s,
_cwprintf, _fseeki64, _ftelli64, _get_osplatform, _get_output_format,
_get_pgmptr, _get_wpgmptr, _get_terminate, _get_tzname, _get_unexpected,
_gmtime64_s, _i64toa_s, _i64tow_s, _initterm_e, _itoa_s, _itow_s,
_localtime32_s, _localtime64_s, _ltoa_s, _ltow_s, _putwch, _searchenv_s,
_sopen_s, _ui64toa_s, _ui64tow_s, _vcwprintf, _vsprintf_p, _waccess_s,
_wcserror, _wcserror_s, _wfopen_s, _wsopen_s, fopen_s, fprintf_s, fwprintf_s,
printf_s, strerror_s, strncpy_s, strtok_s, vfprintf_s, vfwprintf_s, vprintf_s,
vwprintf_s, wcscat_s, wcsncat_s, wcstok_s, wprintf_s. Most code comes from
wine.
- Fix __set_errno -> _set_errno and export it.
- Remove unneeded files.
[CRT_HEADERS]
- add threadmbcinfo struct.
- update some sec_api headers from mingw64 due to missing or incorrect
functions.
Patch by Samuel Serapion.
Changes to msvcrt spec by me due to winebuild.
CRLF/LF fixes.
svn path=/trunk/; revision=54651
2011-12-14 22:09:24 +00:00
|
|
|
return EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
memcpy(str, pos, buffer-pos+65);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
int CDECL _itoa_s(int value, char *str, size_t size, int radix)
|
|
|
|
{
|
|
|
|
return _ltoa_s(value, str, size, radix);
|
|
|
|
}
|
2007-11-08 21:06:20 +00:00
|
|
|
|
2007-03-14 20:24:57 +00:00
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
2007-11-08 21:06:20 +00:00
|
|
|
char *
|
2015-09-15 10:35:49 +00:00
|
|
|
CDECL
|
2007-11-08 21:06:20 +00:00
|
|
|
_itoa(int value, char *string, int radix)
|
|
|
|
{
|
|
|
|
return _ltoa(value, string, radix);
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
char *
|
2015-09-15 10:35:49 +00:00
|
|
|
CDECL
|
2007-11-08 21:06:20 +00:00
|
|
|
_ltoa(long value, char *string, int radix)
|
|
|
|
{
|
|
|
|
unsigned long val;
|
|
|
|
int negative;
|
|
|
|
char buffer[33];
|
|
|
|
char *pos;
|
|
|
|
int digit;
|
|
|
|
|
|
|
|
if (value < 0 && radix == 10) {
|
|
|
|
negative = 1;
|
|
|
|
val = -value;
|
|
|
|
} else {
|
|
|
|
negative = 0;
|
|
|
|
val = value;
|
|
|
|
} /* if */
|
|
|
|
|
|
|
|
pos = &buffer[32];
|
|
|
|
*pos = '\0';
|
|
|
|
|
|
|
|
do {
|
|
|
|
digit = val % radix;
|
|
|
|
val = val / radix;
|
|
|
|
if (digit < 10) {
|
|
|
|
*--pos = '0' + digit;
|
|
|
|
} else {
|
|
|
|
*--pos = 'a' + digit - 10;
|
|
|
|
} /* if */
|
|
|
|
} while (val != 0L);
|
|
|
|
|
|
|
|
if (negative) {
|
|
|
|
*--pos = '-';
|
|
|
|
} /* if */
|
|
|
|
|
|
|
|
memcpy(string, pos, &buffer[32] - pos + 1);
|
|
|
|
return string;
|
|
|
|
}
|
|
|
|
|
[CRT]
- Update file.c to recent wine. (now with locking!)
- implement/enable __wcserror, __wcserror_s, _access_s, _ctime32_s, _ctime64_s,
_cwprintf, _fseeki64, _ftelli64, _get_osplatform, _get_output_format,
_get_pgmptr, _get_wpgmptr, _get_terminate, _get_tzname, _get_unexpected,
_gmtime64_s, _i64toa_s, _i64tow_s, _initterm_e, _itoa_s, _itow_s,
_localtime32_s, _localtime64_s, _ltoa_s, _ltow_s, _putwch, _searchenv_s,
_sopen_s, _ui64toa_s, _ui64tow_s, _vcwprintf, _vsprintf_p, _waccess_s,
_wcserror, _wcserror_s, _wfopen_s, _wsopen_s, fopen_s, fprintf_s, fwprintf_s,
printf_s, strerror_s, strncpy_s, strtok_s, vfprintf_s, vfwprintf_s, vprintf_s,
vwprintf_s, wcscat_s, wcsncat_s, wcstok_s, wprintf_s. Most code comes from
wine.
- Fix __set_errno -> _set_errno and export it.
- Remove unneeded files.
[CRT_HEADERS]
- add threadmbcinfo struct.
- update some sec_api headers from mingw64 due to missing or incorrect
functions.
Patch by Samuel Serapion.
Changes to msvcrt spec by me due to winebuild.
CRLF/LF fixes.
svn path=/trunk/; revision=54651
2011-12-14 22:09:24 +00:00
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
int CDECL _ltoa_s(long value, char *str, size_t size, int radix)
|
|
|
|
{
|
|
|
|
unsigned long val;
|
|
|
|
unsigned int digit;
|
|
|
|
int is_negative;
|
|
|
|
char buffer[33], *pos;
|
|
|
|
size_t len;
|
|
|
|
|
|
|
|
if (!MSVCRT_CHECK_PMT(str != NULL) || !MSVCRT_CHECK_PMT(size > 0) ||
|
|
|
|
!MSVCRT_CHECK_PMT(radix >= 2) || !MSVCRT_CHECK_PMT(radix <= 36))
|
|
|
|
{
|
|
|
|
if (str && size)
|
|
|
|
str[0] = '\0';
|
|
|
|
|
|
|
|
#ifndef _LIBCNT_
|
|
|
|
*_errno() = EINVAL;
|
|
|
|
#endif
|
|
|
|
return EINVAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (value < 0 && radix == 10)
|
|
|
|
{
|
|
|
|
is_negative = 1;
|
|
|
|
val = -value;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
is_negative = 0;
|
|
|
|
val = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
pos = buffer + 32;
|
|
|
|
*pos = '\0';
|
|
|
|
|
|
|
|
do
|
|
|
|
{
|
|
|
|
digit = val % radix;
|
|
|
|
val /= radix;
|
|
|
|
|
|
|
|
if (digit < 10)
|
|
|
|
*--pos = '0' + digit;
|
|
|
|
else
|
|
|
|
*--pos = 'a' + digit - 10;
|
|
|
|
}
|
|
|
|
while (val != 0);
|
|
|
|
|
|
|
|
if (is_negative)
|
|
|
|
*--pos = '-';
|
|
|
|
|
|
|
|
len = buffer + 33 - pos;
|
|
|
|
if (len > size)
|
|
|
|
{
|
|
|
|
size_t i;
|
|
|
|
char *p = str;
|
|
|
|
|
|
|
|
/* Copy the temporary buffer backwards up to the available number of
|
|
|
|
* characters. Don't copy the negative sign if present. */
|
|
|
|
|
|
|
|
if (is_negative)
|
|
|
|
{
|
|
|
|
p++;
|
|
|
|
size--;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (pos = buffer + 31, i = 0; i < size; i++)
|
|
|
|
*p++ = *pos--;
|
|
|
|
|
|
|
|
str[0] = '\0';
|
2014-05-10 20:38:26 +00:00
|
|
|
MSVCRT_INVALID_PMT("str[size] is too small", ERANGE);
|
[CRT]
- Update file.c to recent wine. (now with locking!)
- implement/enable __wcserror, __wcserror_s, _access_s, _ctime32_s, _ctime64_s,
_cwprintf, _fseeki64, _ftelli64, _get_osplatform, _get_output_format,
_get_pgmptr, _get_wpgmptr, _get_terminate, _get_tzname, _get_unexpected,
_gmtime64_s, _i64toa_s, _i64tow_s, _initterm_e, _itoa_s, _itow_s,
_localtime32_s, _localtime64_s, _ltoa_s, _ltow_s, _putwch, _searchenv_s,
_sopen_s, _ui64toa_s, _ui64tow_s, _vcwprintf, _vsprintf_p, _waccess_s,
_wcserror, _wcserror_s, _wfopen_s, _wsopen_s, fopen_s, fprintf_s, fwprintf_s,
printf_s, strerror_s, strncpy_s, strtok_s, vfprintf_s, vfwprintf_s, vprintf_s,
vwprintf_s, wcscat_s, wcsncat_s, wcstok_s, wprintf_s. Most code comes from
wine.
- Fix __set_errno -> _set_errno and export it.
- Remove unneeded files.
[CRT_HEADERS]
- add threadmbcinfo struct.
- update some sec_api headers from mingw64 due to missing or incorrect
functions.
Patch by Samuel Serapion.
Changes to msvcrt spec by me due to winebuild.
CRLF/LF fixes.
svn path=/trunk/; revision=54651
2011-12-14 22:09:24 +00:00
|
|
|
return ERANGE;
|
|
|
|
}
|
|
|
|
|
|
|
|
memcpy(str, pos, len);
|
|
|
|
return 0;
|
|
|
|
}
|
2007-11-08 21:06:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* @implemented
|
|
|
|
*/
|
|
|
|
char *
|
2015-09-15 10:35:49 +00:00
|
|
|
CDECL
|
2007-11-08 21:06:20 +00:00
|
|
|
_ultoa(unsigned long value, char *string, int radix)
|
2007-03-14 20:24:57 +00:00
|
|
|
{
|
|
|
|
char buffer[33];
|
|
|
|
char *pos;
|
|
|
|
int digit;
|
2007-10-19 23:21:45 +00:00
|
|
|
|
2007-03-14 20:24:57 +00:00
|
|
|
pos = &buffer[32];
|
|
|
|
*pos = '\0';
|
|
|
|
|
|
|
|
do {
|
|
|
|
digit = value % radix;
|
|
|
|
value = value / radix;
|
|
|
|
if (digit < 10) {
|
|
|
|
*--pos = '0' + digit;
|
|
|
|
} else {
|
|
|
|
*--pos = 'a' + digit - 10;
|
|
|
|
} /* if */
|
|
|
|
} while (value != 0L);
|
|
|
|
|
|
|
|
memcpy(string, pos, &buffer[32] - pos + 1);
|
2007-11-08 21:06:20 +00:00
|
|
|
|
2007-03-14 20:24:57 +00:00
|
|
|
return string;
|
|
|
|
}
|