Remove custom printf
This commit is contained in:
parent
c68c0169d4
commit
cae9844a9c
1 changed files with 3 additions and 7 deletions
10
ccc.c
10
ccc.c
|
@ -1429,12 +1429,8 @@ int get_window_size(int *row, int *col)
|
||||||
*/
|
*/
|
||||||
void bprintf(const char *fmt, ...)
|
void bprintf(const char *fmt, ...)
|
||||||
{
|
{
|
||||||
char buffer[1024];
|
|
||||||
va_list args;
|
va_list args;
|
||||||
|
va_start(args, fmt);
|
||||||
va_start(args, fmt);
|
vprintf(fmt, args);
|
||||||
vsnprintf(buffer, sizeof(buffer), fmt, args);
|
va_end(args);
|
||||||
va_end(args);
|
|
||||||
|
|
||||||
write(STDOUT_FILENO, buffer, strlen(buffer));
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue