[LAD] [ot] programming typedefs...

Florian Schmidt mista.tapas at gmx.net
Thu Jul 10 16:47:53 UTC 2008


On Thursday 10 July 2008, Julien Claassen wrote:
> Sorry folks!
>    But I'mtoo stupid. I have a struct, which contains a pointer to itself
> as an element. How to write this. I once knew, but now I fail. It's a
> shame! :-( Kindest regards
>          Julien

In C or C++?

C:

struct Foo {
	struct Foo *next;
};

C++:

struct Foo {
	Foo *next;
};

Regards,
Flo

-- 
Palimm Palimm!
http://tapas.affenbande.org



More information about the Linux-audio-dev mailing list