• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: C question about structs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C question about structs


  • Subject: Re: C question about structs
  • From: "Craig S. Cottingham" <email@hidden>
  • Date: Mon, 23 Jul 2001 13:49:01 -0500

On Monday, July 23, 2001, at 12:31 , Alex Golovinsky wrote:

typedef struct B;

typedef struct
{
B *myb;
}A;

typedef struct
{
A *mya;
}B;

Try this:

struct B;

typedef struct A
{
struct B *myb;
} A;

typedef struct B
{
A *mya;
} B;

--
Craig S. Cottingham
email@hidden
PGP key available from: <http://pgp.ai.mit.edu:11371/pks/lookup?op=get&search=0xA2FFBE41>
ID=0xA2FFBE41, fingerprint=6AA8 2E28 2404 8A95 B8FC 7EFC 136F 0CEF A2FF BE41


References: 
 >C question about structs (From: Alex Golovinsky <email@hidden>)

  • Prev by Date: Re: menu enabling/disabling in Java
  • Next by Date: Re: Use of NSLog() for debugging
  • Previous by thread: C question about structs
  • Next by thread: Re: C question about structs
  • Index(es):
    • Date
    • Thread