1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:57:35 +00:00

LibC: Implement vdprintf and dprintf

These functions work just like `vfprintf` and `fprintf`, except that
they take a file descriptor as their first argument instead of a FILE*.
This commit is contained in:
René Hickersberger 2023-06-24 11:50:54 +02:00 committed by Tim Schumacher
parent daf3d4c6ef
commit ad560cff0f
2 changed files with 19 additions and 0 deletions

View file

@ -79,6 +79,8 @@ int vfprintf(FILE*, char const* fmt, va_list) __attribute__((format(printf, 2, 0
int vasprintf(char** strp, char const* fmt, va_list) __attribute__((format(printf, 2, 0)));
int vsprintf(char* buffer, char const* fmt, va_list) __attribute__((format(printf, 2, 0)));
int vsnprintf(char* buffer, size_t, char const* fmt, va_list) __attribute__((format(printf, 3, 0)));
int vdprintf(int, char const* fmt, va_list) __attribute__((format(printf, 2, 0)));
int dprintf(int, char const* fmt, ...) __attribute__((format(printf, 2, 3)));
int fprintf(FILE*, char const* fmt, ...) __attribute__((format(printf, 2, 3)));
int printf(char const* fmt, ...) __attribute__((format(printf, 1, 2)));
void dbgputstr(char const*, size_t);