468,484 Members | 1,602 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,484 developers. It's quick & easy.

Generic linked list in c

what is meant by generic linked list.How to implement it in c?
can anyone plz help me.
Feb 4 '08 #1
3 2207
sicarie
4,677 Expert Mod 4TB
what is meant by generic linked list.How to implement it in c?
can anyone plz help me.
A generic linked list is just that - any linked list whose implementation has the prerequisite features of a "linked list" (listed in the link).

You can find a great deal on this by Google searching.
Feb 4 '08 #2
weaknessforcats
9,207 Expert Mod 8TB
A generic linked list, in C, is a linked list with a void* in the node for the data.

By typecasting, you can use the linked list for any type.

And please, for heaven's sake, do not carry this concept into C++. void* are deprecated in C++.
Feb 4 '08 #3
bfoo75
12
Anyone know why that is? I mean the deprecated null pointer.... I ran into some situations that required it in directx. It had to do with passing lists of points to draw routines. Is there some syntax to replace the functionality? or is one of those things that they just assume is bad design if you need to use it?
Feb 4 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

15 posts views Thread by Stig Brautaset | last post: by
6 posts views Thread by Nick Valeontis | last post: by
10 posts views Thread by Egghead | last post: by
7 posts views Thread by =?Utf-8?B?Sm9lbCBNZXJr?= | last post: by
4 posts views Thread by sengupta_arka123 | last post: by
reply views Thread by Atos | last post: by
11 posts views Thread by Scott Stark | last post: by
4 posts views Thread by Tony Johansson | last post: by
reply views Thread by NPC403 | last post: by
2 posts views Thread by gieforce | last post: by
reply views Thread by theflame83 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.