Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!ut-emx!walt.cc.utexas.edu!readdm From: readdm@walt.cc.utexas.edu (David M. Read) Newsgroups: comp.lang.c Subject: HELP!! arg-lists in Turbo-C Keywords: va_args Message-ID: <19724@ut-emx.UUCP> Date: 17 Oct 89 22:31:49 GMT Sender: news@ut-emx.UUCP Reply-To: readdm@walt.cc.utexas.edu (David M. Read) Organization: UT-Austin / The Institute for Leisurely Studies Lines: 21 I am trying to write a variable-length arg-list processor in Turbo-C, and for special reasons I can't use the stuff supplied in . Everything works fine, except when I try to pass floats. I noticed that when I use va_arg (va_list, type) with type = float, the result is useless, but using type = double seems to resolve the problem. This indicates that floats are pushed onto the stack as type double, no? The trick is this: I need to BUILD a va_list, not analyze one. Can anyone tell me if my guess is correct, and perhaps how to build a va_list if it's not? Thanks in advance. ---------------------------------------------------------------------------- David M. Read best -=> readdm@walt.cc.utexas.edu all-else-fails -=> read@physics.utexas.edu "...[he's] stupid and he's ignorant but he's got guts...and guts is enough!" ----------------------------------------------------------------------------