Displaying 1 result from an estimated 1 matches for "fomart".
Did you mean:
formart
2009 Jun 01
1
error on implementing printf
...y implementation of printf for use in syslinux core.
#include <stdio.h>
#include <unistd.h>
#define BUF_SIZE 1024
char buf[BUF_SIZE];
extern void myputs(const char *);
int printf(const char *format, ...)
{
va_list ap;
int rv;
#if 1
myputs("DEBUG:the string we want fomart is\n\r");
myputs(format);
#endif
va_start(ap, format);
rv = vsprintf(buf, format, ap);
va_end(ap);
myputs(buf);
return rv;
}
well, this program is simple. but it can't work; then i debugged it, found
something error really happened.
it's called from hello()...