Page 1 of 1

Vararg

Posted: Tue Aug 21, 2001 11:00 pm
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!!!!

RE:Vararg

Posted: Wed Aug 29, 2001 11:00 pm
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