Xref: utzoo comp.sys.amiga.programmer:586 comp.std.c:4241 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!spool.mu.edu!samsung!usc!elroy.jpl.nasa.gov!ncar!zaphod.mps.ohio-state.edu!lavaca.uh.edu!menudo.uh.edu!nuchat!sugar!peter From: peter@sugar.hackercorp.com (Peter da Silva) Newsgroups: comp.sys.amiga.programmer,comp.std.c Subject: ANSI prototypes, the right choice... Message-ID: <7708@sugar.hackercorp.com> Date: 5 Feb 91 00:53:51 GMT Organization: Sugar Land Unix -- Houston, TX Lines: 20 For all you Lattice-C programmers, I have a little hint for writing more portable programs: int foo(int a, int b); This is *not* compatible with a function declared: int foo(a, b) int a, b; { ... } While some compilers will accept this declaration while this prototype is in scope, it is not portable and should at least generate a warning. If you use a prototype, *declare* it with a prototype. If you don't want to, then leave the prototype out as well. -- Peter da Silva. `-_-' .