<varargs.h> for Turbo C ?

Sidney Markowitz sidney at saturn.ucsc.edu
Mon Oct 16 15:40:39 AEST 1989


In article <11295 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn) writes:
> [...]  Here is a typical example of code
>that works with either implementation:

>	#ifdef __STDC__

I would suggest one modification to this. TurboC only defines __STDC__
if you specify the -A (ANSI compatibility) flag when compiling.  I
would define my own flag STDVARARGS if __STDC__ or __TURBOC__ is
defined and then use that, so you have the option of using
conditionalized TurboC extensions if you want to.

-- sidney markowitz <sidney at saturn.ucsc.edu or sidney at ai.mit.edu>



More information about the Comp.lang.c mailing list