<varargs.h> for Turbo C ?

Loyde W Hales lwh at harpsichord.cis.ohio-state.edu
Fri Oct 13 21:58:19 AEST 1989


>The Turbo C compiler product does NOT supply <varargs.h> in its include
>libraries.  (Perhaps because it is not ANSI enough?)
>
>Has anyone developed a suitable <varargs.h> file for use with Turbo C?
>And, if so, would you e-mail me a copy, or better yet, post it.
>
>This would be very helpful when porting C code from a U**X environment.

It does, Steve, have a variable-arguments header (at least in Ver. 1.5 and
later).  Your problem is that you are looking in the wrong place.  For some
reason they put it in <stdarg.h>, not the more common <vararg.h>.  (Actually,
I know the reason.  Remember that ANSI is a draft; for distribution reasons
many argued that the stuff should be in <stdarg.h> anyway.  This didn't
happen, for consistency reasons.)

If the name is that important to you, you can redefine it in the OS or via
#define.



-=-

                                Department of Computer and Information Science
Loyde W. Hales, II                      The Ohio State University
lwh at cis.ohio-state.edu          2036 Neil Avenue Mall, Columbus, Ohio  43201



More information about the Comp.lang.c mailing list