473,326 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

map

hi, all

Is there any C lib implentments map like c++?
Sep 5 '08 #1
5 1334
xuchm said:
hi, all

Is there any C lib implentments map like c++?
A C++ map is merely an associative container (i.e. a bucket into which you
can chuck paired up keys and payloads, such that, given the key, you can
get the payload) that (IIRC) observes certain complexity guarantees. It is
quite simple to write something of the kind in C, in any of a number of
ways - e.g. a self-balancing binary search tree (red-black, AVL, splay,
roll-your-own, etc) or a hash table. Relevant libraries are ten a penny,
or cheaper.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Sep 5 '08 #2
On Sep 5, 1:31 am, Richard Heathfield <r...@see.sig.invalidwrote:
xuchm said:
hi, all
Is there any C lib implentments map like c++?

A C++ map is merely an associative container (i.e. a bucket into which you
can chuck paired up keys and payloads, such that, given the key, you can
get the payload) that (IIRC) observes certain complexity guarantees. It is
quite simple to write something of the kind in C, in any of a number of
ways - e.g. a self-balancing binary search tree (red-black, AVL, splay,
roll-your-own, etc) or a hash table. Relevant libraries are ten a penny,
or cheaper.
Wow, prices sure are coming down. I remember when they used to be a
dime a dozen.
Sep 5 '08 #3
el********@gmail.com wrote:
On Sep 5, 1:31 am, Richard Heathfield <r...@see.sig.invalidwrote:
>xuchm said:
>>hi, all
Is there any C lib implentments map like c++?
A C++ map is merely an associative container (i.e. a bucket into which you
can chuck paired up keys and payloads, such that, given the key, you can
get the payload) that (IIRC) observes certain complexity guarantees. It is
quite simple to write something of the kind in C, in any of a number of
ways - e.g. a self-balancing binary search tree (red-black, AVL, splay,
roll-your-own, etc) or a hash table. Relevant libraries are ten a penny,
or cheaper.

Wow, prices sure are coming down. I remember when they used to be a
dime a dozen.
Stronger Pound vs weaker Dollar I suppose.

--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---
Sep 5 '08 #4
On Sep 5, 1:14*am, xuchm <xcm...@gmail.comwrote:
hi, all

Is there any C lib implentments *map like c++?
This:
http://sourceforge.net/search/index....de=0&limit=100

Gives me 6422 results. I guess maybe something in there can help you.
Sep 5 '08 #5
user923005 wrote:
xuchm <xcm...@gmail.comwrote:
>Is there any C lib implentments map like c++?

This:
http://sourceforge.net/search/index....de=0&limit=100

Gives me 6422 results. I guess maybe something in there can help you.
Take a look at (GPL'd, completely standard C):

<http://cbfalconer.home.att.net/download/hashlib.zip>

--
[mail]: Chuck F (cbfalconer at maineline dot net)
[page]: <http://cbfalconer.home.att.net>
Try the download section.
Sep 5 '08 #6

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

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.