mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +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
|
@ -34,6 +34,7 @@ int dbgputstr(const char*, int);
|
|||
int kernelputstr(const char*, int);
|
||||
int kprintf(const char* fmt, ...);
|
||||
int sprintf(char* buf, const char* fmt, ...);
|
||||
int snprintf(char* buf, size_t, const char* fmt, ...);
|
||||
void set_serial_debug(bool on_or_off);
|
||||
int get_serial_debug();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue