Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!cbosgd!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU (Matt Dillon) Newsgroups: net.micro.amiga Subject: Re: Vt100 v2.1 warnings Message-ID: <8609261713.AA28743@cory.Berkeley.EDU> Date: Fri, 26-Sep-86 13:13:26 EDT Article-I.D.: cory.8609261713.AA28743 Posted: Fri Sep 26 13:13:26 1986 Date-Received: Tue, 30-Sep-86 03:17:05 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: University of California at Berkeley Lines: 31 >Phil Hunt writes: > Line 427 and 490, Warning 85: Function return value mismatch > > any ideas? > > I am just learning 'C', so it is all new to me. The author did something like: ptr = function() Where the function returned an integer and not a pointer. It's only a warning on Lattice becomes integers and pointers are the same size anyway. You can ignore such error's for the most part (it's the authors fault), but don't You get into the habit. The correct method (via an example): extern char *function(); char *ptr; . . . ptr = function(); As you can see, it's a little more hassle, but it's correct. -Matt