C library


 
Thread Tools Search this Thread
Top Forums Programming C library
# 1  
Old 07-02-2006
C library

Does anybody know are there free C library that implements most features of C++ standard library?
e.g. I've used Berkeley in-memory db as maps (hash) but this isn't sufficient
# 2  
Old 07-03-2006
What features?

For hashing how about the GP hash function library?
http://www.partow.net/programming/hashfunctions/#top

Another choice is to use perlcall to create a callback to access perl library calls:
http://www.xav.com/perl/lib/Pod/perlcall.html
# 3  
Old 07-03-2006
Thanks in advance
But I think this thread is far from closing...
Any other suggestions are welcome
# 4  
Old 07-05-2006
Gut,
but what about std algorithms (e.g. find, sort, etc.) Smilie
# 5  
Old 07-05-2006
For sorting arrays in C, you can use qsort, see 'man 3 qsort'.

If you need abstract streaming types, investigate libSDL, it has neat things they call SDL_RWops. They're structures full of function pointers that can be populated by any functions you want. SDL comes with ones for reading from files and memory, and I've written an extension library, SDL_rwlib, that includes things like TCP/IP sockets, UNIX fd's, gz streams, bzip2 streams, temp files and temp memory spaces, ring buffers, and an SDL_rwprintf.

What else do you need? If you're looking for a total replacement of C++ STL, you're out of luck, since the closest thing C has to templates is macros...

Last edited by Corona688; 07-05-2006 at 12:18 PM..
# 6  
Old 07-07-2006
the glibc has hash functions, several others have more specialised functions.
can you please explain what problem you try to solve with those hashes. it will be easier to usccest an alternative solution
# 7  
Old 08-20-2006
I've found something interesting for hash: http://www.cl.cam.ac.uk/~cwc22/hashtable/
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Programming

C++ linking library to a library

Hi All, My application main engine will use a shared library where we do many operation. We are trying to implement the linear algebra operation on the shared library for that I need to link my shared library to the lapack library in /usr/lib. Below is my make file. Can you please let me... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies

2. AIX

Add shared members from library to same library in a different directory

I'm trying to install libiconv to AIX 7.1 from an rpm off of the perzl site. The rpm appears to install but I get this error message. add shr4.o shared members from /usr/lib/libiconv.a to /opt/freeware/lib/libiconv.a add shr.o shared members from /usr/lib/libiconv.a to ... (5 Replies)
Discussion started by: kneemoe
5 Replies

3. Linux

./configure problem for libsf library due to apparently missing libdb library.

Hello, ./configure script fails to configure libsf. Please check the following last few lines of configure script error. checking for db1/db.h... no checking for db.h... yes checking for dbopen in -ldb1... no configure: error: No libdb? No libsf. But find command shows the following; ... (4 Replies)
Discussion started by: vectrum
4 Replies

4. Linux

Could static library include static library?

I have some static library(libxxx.a libyyy.a). And I want to generate my library(libzzz.a), libzzz.a will use libxxx.a and libyyy.a I wan't my application only use libzzz.a, (means libzzz.a had include libxxx.a, libyyy.a), how can I do that? Thank you. example: I have zzz.c. I do ... (4 Replies)
Discussion started by: freemagic
4 Replies

5. Shell Programming and Scripting

How to change a Makefile from building static library to shared library?

Hi: I have a library that it only offers Makefile for building static library. It built libxxx.a file. How do I in any way build a shared library? (either changin the Makefile or direct script or command to build shared library) Thanks. (1 Reply)
Discussion started by: cpthk
1 Replies

6. Programming

C++ library in C

Hi, I have a bunch of C++ files whose functionality needs to be included in another piece of C code. Is it possible to create a C++ library and link it with C code? (2 Replies)
Discussion started by: smanu
2 Replies

7. UNIX for Dummies Questions & Answers

GD library?

I've just been told that I need to install the GD library for PHP on my server, but I've got no idea how to do that or even:eek: where I can find it so that I can download and install it. Is it easy to do and how would I go about doing it?:confused: By the way I believe the server is running... (4 Replies)
Discussion started by: thehaapyappy
4 Replies
Login or Register to Ask a Question