Displaying 1 result from an estimated 1 matches for "hello_str".
Did you mean:
hello_r
2009 Jun 01
1
error on implementing printf
...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() in hello.c, here is the snippet::
void hello(void)
{
static char hello_str[] = "Hello, World! (hello.c)\r\n";
myputs(hello_str);
printf(hello_str);
printf("testing with format output %d\n\r", 2);
}
here is the disassemble:
sub esp, 0x0000000c ; seems it want allocate some memory, but I didn't see
anything pushed on it..
mov eax,...