🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5691

Re: is f().c legal? How about (&(f()))->c ?

#5691
From: Tom Middleton
Date: Thu, 02 Feb 1989 07:10
16 lines
1236 bytes
In article <2648@vedge.UUCP> lai@vedge.UUCP (David Lai) writes:
>Here f() returns a structure.

I may be missing the point here but it seems that one problem is f()
does not return a structure but rather a pointer to a structure.  I
don't know how an entire structure can be returned by a function.
This would imply that f()->c should be legal, but I don't know if
that is what you meant to say in the first place.  Seems to me that
&(f()) is the address of the pointer returned by the function f and
although (&(f()))-> is legal it isn't what you think it is.

-- 
 G O    P A D R E S !		Thomas Earl Middleton
    1989			aka Happy Bare
 N L    C H A M P S !		UUCP  ...!ucsd!sdsu!middleto
 W S    C H A M P S !		ARPA  middleto%sdsu.uucp@ucsd.edu
Technical Details
Message-ID: <3459@sdsu.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!nrl-cmf!ukma!gatech!hubcap!ncrcae!ncr-sd!hp-sdd!ucsdhub!sdsu!middleto
References: <2648@vedge.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!nrl-cmf!ukma!gatech!hubcap!ncrcae!ncr-sd!hp-sdd!ucsdhub!sdsu!middleto
From: middleto@sdsu.UUCP (Tom Middleton)
Newsgroups: comp.std.c
Subject: Re: is f().c legal?  How about (&(f()))->c ?
Keywords: ansi
Message-ID: <3459@sdsu.UUCP>
Date: 2 Feb 89 07:10:06 GMT
References: <2648@vedge.UUCP>
Reply-To: middleto@sdsu.UCSD.EDU (Tom Middleton)
Organization: San Diego State University, Math/Sciences Dept.
Lines: 16