Recommendations For Generic C Data Structures & Algorithms


 
Thread Tools Search this Thread
Top Forums Programming Recommendations For Generic C Data Structures & Algorithms
# 1  
Old 04-04-2009
Recommendations For Generic C Data Structures & Algorithms

Hi All,

Rather than re-invent the wheel, I am trying to find a mature C library that provides generic support for lists, trees, etc.

I understand C doesn't formally support "generics", but am aware of a few solutions like GLib and SGLib.

Can anyone kindly recommend what they think is best?

Thankyou Smilie
# 2  
Old 04-05-2009
I'm not aware of one giant all-purpose library, no. Seeing what they've become in C++, not sure that's a bad thing. I occasionally come across libraries and code generators for things like hash tables.
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Do we have generic solution get process start time in AIX & Linux

I wish to get the process start time on AiX and Linux using the same command / script. I'm able to get the process start time in Linux using the below command: cat /proc/<pid>/stat | grep Modify The same does not work for AiX 6.1 systems. Can you please let me know the command to get... (4 Replies)
Discussion started by: mohtashims
4 Replies

2. Programming

Signalsafe data structures

Hello, I have a signal handler which manipulates a data structure. The data structure's operations aren't atomic. So if two threads/processes are in a critical section at the same time the data structure will be broken. With threads you can avoid this stuff with semaphores etc. However,... (10 Replies)
Discussion started by: littlegnome
10 Replies

3. Shell Programming and Scripting

Perl Data Structures

Here is what i need to do. @data #has all column wise data so say info for col 1 location for all rows would be in this array $array = \@data But i need to create a file which should contain these information in a format for all columns even if i have got no values from some of the index... (0 Replies)
Discussion started by: dinjo_jo
0 Replies

4. Programming

shared memory - userdefined data structures

Hello, I wonder if I can write my userdefined data structures(ex: a list) to a shared memory segment? I know, the shm functions get (void*) parameter so I should be able to read and write a list into the shared memory. may someone inform and clarify me about that, please? (1 Reply)
Discussion started by: xyzt
1 Replies
Login or Register to Ask a Question