The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
GD library? thehaapyappy UNIX for Dummies Questions & Answers 4 05-07-2008 03:44 AM
Library won't load sansan UNIX for Dummies Questions & Answers 0 11-06-2006 12:42 AM
AIX Library Interposer mrunal UNIX for Advanced & Expert Users 2 08-07-2006 01:05 AM
use gcc and link with a library AUBERT High Level Programming 1 06-21-2004 09:20 AM
library files jalburger High Level Programming 1 04-13-2004 01:19 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-02-2006
Hitori's Avatar
Registered User
 

Join Date: Jun 2006
Posts: 356
Stumble this Post!
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
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-03-2006
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,849
Stumble this Post!
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
Reply With Quote
  #3 (permalink)  
Old 07-03-2006
Hitori's Avatar
Registered User
 

Join Date: Jun 2006
Posts: 356
Stumble this Post!
Thanks in advance
But I think this thread is far from closing...
Any other suggestions are welcome
Reply With Quote
  #4 (permalink)  
Old 07-04-2006
Hitori's Avatar
Registered User
 

Join Date: Jun 2006
Posts: 356
Stumble this Post!
Gut,
but what about std algorithms (e.g. find, sort, etc.)
Reply With Quote
  #5 (permalink)  
Old 07-05-2006
Registered User
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 923
Stumble this Post!
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 08:18 AM.
Reply With Quote
  #6 (permalink)  
Old 07-07-2006
Registered User
 

Join Date: May 2006
Posts: 95
Stumble this Post!
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
Reply With Quote
  #7 (permalink)  
Old 08-20-2006
Hitori's Avatar
Registered User
 

Join Date: Jun 2006
Posts: 356
Stumble this Post!
I've found something interesting for hash: http://www.cl.cam.ac.uk/~cwc22/hashtable/
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 01:52 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0