mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:27:45 +00:00
AK+Kernel: Support snprintf
In contrast to sprintf, which might overflow the given buffer. I feel bad about the code duplication, but that is a pre-existing issue.
This commit is contained in:
parent
2d34f0f93a
commit
0240baa42d
3 changed files with 30 additions and 0 deletions
|
@ -37,6 +37,7 @@ int vdbgprintf(const char* fmt, va_list);
|
|||
int dbgprintf(const char* fmt, ...);
|
||||
ssize_t dbgputstr(const char*, ssize_t);
|
||||
int sprintf(char* buf, const char* fmt, ...);
|
||||
int snprintf(char* buffer, size_t, const char* fmt, ...);
|
||||
}
|
||||
# endif
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue