Click here to Skip to main content
16,020,628 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello. I want to create a header file in C like list.h of C++. I am using Visual C++ 2005. I need some help. Is it possible to create a header of linked list in C? In C++ we include list.h and declear list<int> ll, say, then call ll.push_back() to add an element etc. in the program. Is these operation or delearation of linked list in C possible? C is not object oriented. So how can I create a list.h and deleare a data type list and access its functions? Please help.
Posted

Standard Template Libraries are only available in C++. If you want something similar in C then you will have to write it yourself, unless you can find a solution through Google. Do you have a compelling reason not to use C++?
 
Share this answer
 
Apart from the other answer you got, you realise that list.h does not contain the entire linked list classes, only the header you need in order to use it ?
 
Share this answer
 
If you want a C linked list implementation, take a look at http://isis.poly.edu/kulesh/stuff/src/klist/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900