Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!ncar!ico!ism780c!haddock!karl
From: karl@haddock.ima.isc.com (Karl Heuer)
Newsgroups: comp.lang.c
Subject: Re: passing *char parameters by reference
Message-ID: <14280@haddock.ima.isc.com>
Date: 13 Aug 89 18:54:46 GMT
References: <1424@novavax.UUCP> <660050@hpclwjm.HP.COM>
Reply-To: karl@haddock.ima.isc.com (Karl Heuer)
Organization: Interactive Systems, Boston
Lines: 9

In article <660050@hpclwjm.HP.COM> walter@hpclwjm.HP.COM (Walter Murray) writes:
>If you use function prototypes, an ANSI-conforming compiler will also
>catch this kind of error.

Or it might silently "fix" it by doing an automatic conversion from the actual
argument type to the formal parameter type.  Hopefully, any reasonable ANSI C
compiler will at least have an option to warn about such constructs.

Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint