[LAD] [ot] programming typedefs...
Lars Luthman
lars.luthman at gmail.com
Thu Jul 10 17:07:20 UTC 2008
On Thu, 2008-07-10 at 18:24 +0200, 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! :-(
Either
typedef struct foo foo_t;
struct foo {
foo_t* pointer;
};
or
struct foo {
struct foo* pointer;
};
--ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxaudio.org/pipermail/linux-audio-dev/attachments/20080710/61671e88/attachment.pgp>
More information about the Linux-audio-dev
mailing list