msvcr100: Added _sprintf_p implementation.
This commit is contained in:
parent
d958ecbc69
commit
77306693d4
|
@ -457,6 +457,21 @@ size_t CDECL fread_s(void *buf, size_t buf_size, size_t elem_size, size_t count,
|
|||
return buf_pos/elem_size;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _sprintf_p (MSVCR100.@)
|
||||
*/
|
||||
int CDECL _sprintf_p(char *buffer, size_t length, const char *format, ...)
|
||||
{
|
||||
__ms_va_list valist;
|
||||
int r;
|
||||
|
||||
__ms_va_start(valist, format);
|
||||
r = _vsprintf_p_l(buffer, length, format, NULL, valist);
|
||||
__ms_va_end(valist);
|
||||
|
||||
return r;
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* DllMain (MSVCR100.@)
|
||||
*/
|
||||
|
|
|
@ -1312,7 +1312,7 @@
|
|||
@ cdecl _splitpath(str ptr ptr ptr ptr) msvcrt._splitpath
|
||||
@ cdecl _splitpath_s(str ptr long ptr long ptr long ptr long) msvcrt._splitpath_s
|
||||
@ stub _sprintf_l
|
||||
@ stub _sprintf_p
|
||||
@ varargs _sprintf_p(ptr long str)
|
||||
@ varargs _sprintf_p_l(ptr long str ptr) msvcrt._sprintf_p_l
|
||||
@ stub _sprintf_s_l
|
||||
@ varargs _sscanf_l(str str ptr) msvcrt._sscanf_l
|
||||
|
|
|
@ -974,7 +974,7 @@
|
|||
@ cdecl _splitpath(str ptr ptr ptr ptr) msvcrt._splitpath
|
||||
@ cdecl _splitpath_s(str ptr long ptr long ptr long ptr long) msvcrt._splitpath_s
|
||||
@ stub _sprintf_l
|
||||
@ stub _sprintf_p
|
||||
@ varargs _sprintf_p(ptr long str) msvcr100._sprintf_p
|
||||
@ varargs _sprintf_p_l(ptr long str ptr) msvcrt._sprintf_p_l
|
||||
@ stub _sprintf_s_l
|
||||
@ varargs _sscanf_l(str str ptr) msvcrt._sscanf_l
|
||||
|
|
|
@ -967,7 +967,7 @@
|
|||
@ cdecl _splitpath(str ptr ptr ptr ptr) msvcrt._splitpath
|
||||
@ cdecl _splitpath_s(str ptr long ptr long ptr long ptr long) msvcrt._splitpath_s
|
||||
@ stub _sprintf_l
|
||||
@ stub _sprintf_p
|
||||
@ varargs _sprintf_p(ptr long str) msvcr100._sprintf_p
|
||||
@ varargs _sprintf_p_l(ptr long str ptr) msvcrt._sprintf_p_l
|
||||
@ stub _sprintf_s_l
|
||||
@ varargs _sscanf_l(str str ptr) msvcrt._sscanf_l
|
||||
|
|
|
@ -125,6 +125,7 @@ int __cdecl _scprintf(const char*,...);
|
|||
int __cdecl _vscprintf(const char*,__ms_va_list);
|
||||
int __cdecl _vsnprintf(char*,size_t,const char*,__ms_va_list);
|
||||
int __cdecl _vsnprintf_s(char*,size_t,size_t,const char*,__ms_va_list);
|
||||
int __cdecl _vsprintf_p_l(char*,size_t,const char*,_locale_t,__ms_va_list);
|
||||
|
||||
void __cdecl clearerr(FILE*);
|
||||
int __cdecl fclose(FILE*);
|
||||
|
|
Loading…
Reference in New Issue