OSDev.org

The Place to Start for Operating System Developers
It is currently Wed Apr 24, 2024 11:14 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Vararg
PostPosted: Tue Aug 21, 2001 11:00 pm 
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!!!!


Top
  
 
 Post subject: RE:Vararg
PostPosted: Wed Aug 29, 2001 11:00 pm 
>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


Top
  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot] and 191 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group