root/core/printf.c

Revision e751e537459b681b4a0b56276e58f08296f9dc8f, 282 bytes (checked in by Liu Aleaxander <Aleaxander@…>, 3 years ago)

printf error fixed

and removed the itao function as the printf function works well now

  • Property mode set to 100644
Line 
1#include <stdio.h>
2#include <unistd.h>
3
4#include "core.h"
5
6int printf(const char *format, ...)
7{
8    char buf[1024];
9    va_list ap;
10    int rv;
11   
12    va_start(ap, format);
13    rv = vsnprintf(buf, sizeof buf, format, ap);
14    va_end(ap);
15   
16    myputs(buf);
17
18    return rv;
19
20}
Note: See TracBrowser for help on using the browser.