Path: utzoo!attcan!uunet!husc6!rutgers!bellcore!tness7!texbell!bigtex!james From: james@bigtex.uucp (James Van Artsdalen) Newsgroups: comp.sys.ibm.pc Subject: Re: Function declarations (was: MSC Message-ID: <7859@bigtex.uucp> Date: 11 Sep 88 20:22:13 GMT References: <64@cybaswan.UUCP> <12400016@cpe> Reply-To: james@bigtex.UUCP (James Van Artsdalen) Organization: F.B.N. Software, Austin TX Lines: 19 In article <12400016@cpe>, tif@cpe.UUCP wrote: | I can. When you want to use a return value in more than one way. | a() { | int *malloc(), *x; | x = malloc(sizeof(int)); | } | | b() { | long *malloc(), *x; | x = malloc(sizeof(long)); | } This won't work right: it's not at all portable. It assumes that sizeof(int *) == sizeof(long*), an assumption which isn't always true. -- James R. Van Artsdalen ...!uunet!utastro!bigtex!james "Live Free or Die" Home: 512-346-2444 Work: 328-0282; 110 Wild Basin Rd. Ste #230, Austin TX 78746