Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!nrl-cmf!cmcl2!phri!marob!daveh From: daveh@marob.MASA.COM (Dave Hammond) Newsgroups: comp.lang.c Subject: Re: QuickC Message-ID: <387@marob.MASA.COM> Date: 29 Aug 88 10:51:29 GMT References: <8808261424.AA11504@ucbvax.Berkeley.EDU> Reply-To: daveh@marob.masa.com (Dave Hammond) Organization: ESCC New York City Lines: 20 In article <8808261424.AA11504@ucbvax.Berkeley.EDU> TURGUT@TREARN.BITNET (Turgut Kalfaoglu) writes: > >The other day, I was struggling with QuickC - a very simply problem, >but really intriguing. Let me know if you can interpret this: > >[... examples pertaining to square() returning a correct value even tho' it >(a) has no return statement or (b) has a dummy return value. ...] My guess is that there is a QuickC library routine called square() which is being loaded before your routine, and thus called in lieu of yours. Another answer might be a #define somewhere, like: #define square(x) ((x)*(x)) Is there any loader/linker warning message about multiply-defined square() ? Dave Hammond UUCP: {uunet|...}!masa.com!{dsix2|marob}!daveh DOMAIN: dsix2!daveh@masa.com ------------------------------------------------------------------------------