kvprint.c (277B)
1 #include <stdarg.h> 2 #include <stddef.h> 3 4 #include <libk.h> 5 6 #include "stream.h" 7 8 int 9 kvprint(const char *fmt, va_list va) 10 { 11 va_list ap; 12 Stream stream; 13 14 va_copy(ap, va); 15 stream.base = NULL; 16 stream.len = 0; 17 stream.cnt = 0; 18 doprnt(&stream, fmt, ap); 19 20 return stream.cnt; 21 }