mirror of
https://github.com/encounter/osdev.git
synced 2026-07-10 12:18:43 -07:00
11 lines
201 B
C
11 lines
201 B
C
|
|
#include <stdio.h>
|
||
|
|
|
||
|
|
int sprintf(char *restrict s, const char *restrict fmt, ...) {
|
||
|
|
int ret;
|
||
|
|
va_list ap;
|
||
|
|
va_start(ap, fmt);
|
||
|
|
ret = vsprintf(s, fmt, ap);
|
||
|
|
va_end(ap);
|
||
|
|
return ret;
|
||
|
|
}
|