typedef in c

Guido van Rossum guido at mcvax.UUCP
Thu Dec 22 22:53:52 AEST 1983


(Question was: how to write a typedef for a recursive structure)

I always structure my declarations like this:

	typedef struct rec record;
	/* Bunch of similar typedefs */

	struct rec {
		record *p;
		/* Etc. */
	};
	/* Etc. */



More information about the Comp.lang.c mailing list