static list initialization

Doug Gwyn gwyn at smoke.ARPA
Mon Oct 17 15:03:35 AEST 1988


In article <196 at donk.UUCP> ajw at donk.UUCP (ajw) writes:
>Question is, is there a way to achieve this initialization within
>the letter of the law, leaving 'head' and 'tail' both static?

Do the following in sequence:
	declare "tail" to be a struct whatever (an incomplete type)
	declare what a "struct whatever" looks like
	initialize a declaration of "tail"
I don't have a copy of the standard at hand, but I think that's
supposed to work.



More information about the Comp.lang.c mailing list