🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #1105

Re: Wzajemna referencja struktur. (autopoprawka)

#1105
From: Karpierz
Date: Thu, 29 Jan 1998 19:19
36 lines
1440 bytes
Karpierz <karpierz@inter.intertele.pl> napisal
[...]
> Ja w takim przypadku stosuje konstrukcje:

To jest napewno zbedne w ANSI C, ale nie wiem czy w K&R..
chyba tez...

> /* deflaracje typu forward */
> 
> struct ALFA_S;	// wiem ze nadmiarowo ale nie zaszkodzi i jest 
> struct BETA_S;

Wiec wystarczy tak:

/* deklaracje struktur */
 
struct ALFA_S
{
  struct BETA_S * brunner;
};
 
struct BETA_S
{
  struct ALFA_S * shtetke;
};
 
/* deklaracje typedef */   // pozwalaja opuszczac slowo struct przy
deklaracjach            
 
typedef struct ALFA_S  ALFA_STRC;
typedef struct BETA_S  BETA_STRC;

-- 
Pozdrawiam                                         Adam Karpierz   
mailto:karpierz@intertele.pl
http://www.intertele.pl/users/karpierz 
Technical Details
Message-ID: <01bd2cea$e3cbde00$8ebaccc2@karpierz.dyn.ml.org>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!ict.pwr.wroc.pl!not-for-mail
References: <34D0AA82.46D7@polbox.com.pl> <01bd2ce8$c83cbb20$8ebaccc2@karpierz.dyn.ml.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!news.icm.edu.pl!ict.pwr.wroc.pl!not-for-mail
From: "Karpierz" <karpierz@inter.intertele.pl>
Newsgroups: pl.comp.lang.c
Subject: Re: Wzajemna referencja struktur. (autopoprawka)
Date: 29 Jan 1998 19:19:31 GMT
Organization: Technical University of Wroclaw, Poland
Lines: 36
Message-ID: <01bd2cea$e3cbde00$8ebaccc2@karpierz.dyn.ml.org>
References: <34D0AA82.46D7@polbox.com.pl> <01bd2ce8$c83cbb20$8ebaccc2@karpierz.dyn.ml.org>
NNTP-Posting-Host: ppp142.intertele.pl
X-Newsreader: Microsoft Internet News 4.70.1161
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit