Vararg

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Matteo Emanuele

Vararg

Post by Matteo Emanuele »

Hi! That's my problem: my printf just don't work!!!
I cutted and pasted all stdargs I found, I wrote
some assembly code wich makes a copy of the stack
upon a call to printf, I made my own va_start &
va_list but nothing... The remarkable thing is
that all works well if I include my code in
"normal" C executables (under linux) and nothing
happens if included in my OS source. I'm going
crazy!!! May gcc has got unusual behaviour
with variadic functions? (I don't think so...)

Thanks in advance,
Matteo

P.S. PLEASE answer at <[email protected]>...
THANKS!!!!
Chris Giese

RE:Vararg

Post by Chris Giese »

>On 2001-08-22 07:21:41, Matteo Emanuele wrote:
>Hi! That's my problem: my printf just don't work!!!

Hi,

I don't know what's wrong with your code, but
my own code works OK:
http://www.execpc.com/~geezer/osd/code/inc/stdarg.h
http://www.execpc.com/~geezer/osd/code/inc/_printf.h
http://www.execpc.com/~geezer/osd/code/ ... doprintf.c

I hope this helps
Post Reply