stdio: enable dprintf() and vdprintf()

This commit is contained in:
Lephenixnoir 2022-01-01 17:10:11 +01:00
parent 3046304497
commit b53078776d
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
#include <ctype.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <fxlibc/printf.h>
/* Internal buffer, used when no buffer is specified for output */
@ -111,7 +112,7 @@ void __printf_flush(struct __printf_output *out)
/* File pointer: output with write */
else if(out->fd)
{
// write(fd, out->buffer, out->ptr - out->buffer);
write(out->fd, out->buffer, out->ptr - out->buffer);
}
/* Switch to the internal buffer (when writing to a string that string