473,807 Members | 2,825 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Looking for standard C data structure implementations ...

I'm just beginning to learn C programming, after working for a while
with high-level languages. I am wondering if there is a standard set of
implementations for things like hash maps and linked lists that can be
used by C programmers. I took a look at the GNU C Library, but I saw
functions, not data structures. Do C programmers come up with their own
data structures, or is there a standard set that I can use?

Thanks for the help.

Scott Huey

Aug 1 '06 #1
3 1424
re************* ***@gmail.com wrote:
I'm just beginning to learn C programming, after working for a while
with high-level languages. I am wondering if there is a standard set of
implementations for things like hash maps and linked lists that can be
used by C programmers. I took a look at the GNU C Library, but I saw
functions, not data structures. Do C programmers come up with their own
data structures, or is there a standard set that I can use?
Typically, one grows their own implementations of such structures,
though there are third-party libraries out there. There are some sites
that have collections of "typical" implementations .

<http://www.cee.hw.ac.u k/~alison/ds98/ds98.html>
<http://www.nist.gov/dads/>
<http://www.acm.org/pubs/calgo/>

Also, check out the Apache Portable Runtime Project <http://apr.apache.org/>
Aug 1 '06 #2
"Clever Monkey" <cl************ **@hotmail.com. invalidwrote in message
news:LW******** **********@nnrp .ca.mci.com!nnr p1.uunet.ca...
re************* ***@gmail.com wrote:
>I'm just beginning to learn C programming, after working for a while
with high-level languages. I am wondering if there is a standard set of
implementation s for things like hash maps and linked lists that can be
used by C programmers. I took a look at the GNU C Library, but I saw
functions, not data structures. Do C programmers come up with their own
data structures, or is there a standard set that I can use?
Typically, one grows their own implementations of such structures,
though there are third-party libraries out there. There are some sites
that have collections of "typical" implementations .

<http://www.cee.hw.ac.u k/~alison/ds98/ds98.html>
<http://www.nist.gov/dads/>
<http://www.acm.org/pubs/calgo/>

Also, check out the Apache Portable Runtime Project <http://apr.apache.org/>
May I add:
http://sourceforge.net/
http://www.softpanorama.org/Bookshelf/algorithms.shtml
http://cgm.cs.mcgill.ca/~godfried/te...ithms-web.html
http://leekillough.com/heaps/
http://eternallyconfuzzled.com/brain.html

This is better than everything else put together:
http://citeseer.ist.psu.edu/cs

Aug 2 '06 #3
dc*****@connx.c om writes:
This is better than everything else put together:
http://citeseer.ist.psu.edu/cs
I often have been luck at Google Scholar or the ACM's Guide.
--
"I should killfile you where you stand, worthless human." --Kaz
Aug 2 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
5032
by: Steven T. Hatton | last post by:
Now that I have a better grasp of the scope and capabilities of the C++ Standard Library, I understand that products such as Qt actually provide much of the same functionality through their own libraries. I'm not sure if that's a good thing or not. AFAIK, most of Qt is compatable with the Standard Library. That is, QLT can interoperate with STL, and you can convert back and forth between std::string and Qt::QString, etc. Are there any...
16
2300
by: Fronsac | last post by:
Hi, I've been asked in a job interview how to make C code look like C++ code, and honestly I didn't know what to answer because I have never really done a lot of C. Now, I've been searching around the web about web sites that talk about this subject, but I've had no luck. Can anyone point me to some web site about this subject? Thanks a lot!
12
3209
by: wxs | last post by:
Many times we have a bunch of enums we have from either different enums or the same enum that will have various numeric values assigned. Rarely will there be collisions in numbering between the enums. These enums you might imagine would be like OrderPrice=27, OrderQuantity=50, OrderSide=62. There may be a lot of these. So normally what we would have to do is store these in hash table so hashtable=value could be set with the value....
4
4958
by: Andreas Kasparek | last post by:
Hola! I'm preparing my master thesis about a XML Merge Tool implementation and was wondering if there is any open standard for XML diff regarding topics like: - is a diff result computed on the ordered or unordered xml node tree of the compared documents? - what identifiers/criteria should be used by default to match elements of the same type in different documents? - should a diff tool consider move operations or only insert/delete
14
2197
by: artifact.one | last post by:
It'd be really pleasant (in my opinion) if the next revision of the C language actually allowed some portable control over data alignment. Compiler-specific mechanisms for this stuff are so varied that it becomes impossible to even abstract the details away behind preprocessor macros. What I'd like to see:
6
3855
by: marktxx | last post by:
Although the C90 standard only mentions the use of 'signed int' and 'unsigned int' for bit-fields (use 'int' at your own risk) and C99 adds _Bool. It seems that most compilers create the size of the bit-field object from the size used to specify the field. Could this be considered a defacto standard now (at least for 8 bit sized bit-fields)? Any recent compilers not allowing this?
4
1675
by: dustin | last post by:
I've been hacking away on this PEP for a while, and there has been some related discussion on python-dev that went into the PEP: http://mail.python.org/pipermail/python-dev/2007-February/070921.html http://mail.python.org/pipermail/python-dev/2007-February/071155.html http://mail.python.org/pipermail/python-dev/2007-February/071181.html I'd love to have feedback on this PEP: - from a user's perspective (would you want to write...
20
3544
by: J de Boyne Pollard | last post by:
MThe library functions which are included to allow process Mlaunch, forking, and termination, imply that it is both Mpossible and desirable for a process to fork itself. This is Ma fundamental part of the Unix thought process, but is Mnot essential for a working OS. There are no Standard C Library functions for process forking or overlaying. The fork() and execve() functions are part of the C language bindings to POSIX. They are not...
32
2749
by: Stephen Horne | last post by:
I've been using Visual C++ 2003 for some time, and recently started working on making my code compile in GCC and MinGW. I hit on lots of unexpected problems which boil down to the same template issue. A noddy mixin layer example should illustrate the issue... class Base { protected: int m_Field;
0
9599
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10626
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5685
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3854
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.