mirror of
https://github.com/UzixLS/KernelEx.git
synced 2025-07-19 07:21:20 +03:00
import KernelEx-4.0-RC1
This commit is contained in:
18
kexcrt/sprintf.c
Normal file
18
kexcrt/sprintf.c
Normal file
@ -0,0 +1,18 @@
|
||||
/*
|
||||
* sprintf.c
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
int sprintf(char *buffer, const char *format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
int rv;
|
||||
|
||||
va_start(ap, format);
|
||||
rv = vsnprintf(buffer, ~(size_t) 0, format, ap);
|
||||
va_end(ap);
|
||||
|
||||
return rv;
|
||||
}
|
Reference in New Issue
Block a user