Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!oberon!sm.unisys.com!hplabs!hpda!hpcuhb!hpcllla!hpclisp!hpclwjm!walter From: walter@hpclwjm.HP.COM (Walter Murray) Newsgroups: comp.sys.hp Subject: Re: UNIX C compilers and ANSI C Message-ID: <1340042@hpclwjm.HP.COM> Date: 1 Feb 89 22:22:11 GMT References: <356@ists.ists.ca> Organization: Hewlett-Packard Calif. Language Lab Lines: 17 > Should I abandon prototyping, especially if I want my > programs to be easily portable? No, don't abandon prototyping. Do something like this: #ifdef __STDC__ /* will be true in an ANSI compiler */ extern f (int i, double d); #else /* not ANSI */ extern f(); #endif Then, when you do compile with an ANSI compiler, you will get the benefits of function prototyping. Walter Murray ----------