473,406 Members | 2,378 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,406 software developers and data experts.

Libraries to handle common tasks

Hi,

Can you advice on a lightweight library to handle the following tasks:
- String manipulation (arbitrary length strings)
- Collections (sets, hash tables)

I am using FreeBSD and gcc.
Thank you
Nov 14 '05 #1
2 1489
bazad wrote:

Can you advice on a lightweight library to handle the following tasks:
- String manipulation (arbitrary length strings)
- Collections (sets, hash tables)

I am using FreeBSD and gcc.


That should not matter.

zero terminated strings are completely portable and have arbitrary
length. I recommend using strlcpy and strlcat (non-standard) as
far as possible to avoid errors.

A full portable hash table implementation is available at:

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

where you will also find strlcpy.zip.

strlcpy is public domain. Hashlib is GPLd.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!

Nov 14 '05 #2
bazad wrote:
Hi,

Can you advice on a lightweight library to handle the following tasks:
- String manipulation (arbitrary length strings)
- Collections (sets, hash tables)

I am using FreeBSD and gcc.

Take a look at the glib library.
http://developer.gnome.org/doc/API/2.0/glib/index.html
Nov 14 '05 #3

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

Similar topics

1
by: PieterB | last post by:
I noticed the URL http://starship.python.net/~da/commontasks/ gives a 404 ERROR. That page is quite usefull. It's still in Google's Cache BTW,...
5
by: Cecil Westerhoff | last post by:
I just started with programming under linux with c++. I have programmed for years with Borland C++ Builder. So I have some experience. But I can not find the libraries for intenet stuff. (Ping,...
3
by: fabio de francesco | last post by:
Hello, I have a couple of years of experience with C++. I started studying C++ syntax, then I read the B.Stroustrup's book, and eventually I went through the N.Josuttis' book on how to program...
27
by: Matt Kruse | last post by:
Since this topic has come up several times in other threads, I thought I'd make a separate thread and gather opinions from (hopefully) a more varied range of newsgroup participants. What are...
2
by: Indiana Epilepsy and Child Neurology | last post by:
Before asking this questions I've spent literally _years_ reading (Meyer, Stroustrup, Holub), googling, asking more general design questions, and just plain thinking about it. I am truly unable to...
17
by: Synic | last post by:
Hi guys. It's been a while since I've done programming in C. What I'm after is a multi-platform library (X11 and MS Windows at a minimum) which is not C++ that will let me program GUI apps....
2
by: Cider123 | last post by:
Haven't done much research on this, hoping someone can offer a quick ref or solution to this. If I create a group of support libraries I want to use in multiple projects, is there some method...
17
by: ahaupt | last post by:
Hi all, I'm currently writing a load of class libraries, but not the main application iteslf. I want to provide some method for reporting errors back to the main application. At the moment...
5
by: =?Utf-8?B?TWljaGFlbFF1aW5sYW4=?= | last post by:
In my development environment I can add references to the Microsoft Practices libraries and everything works ok. But when I copy the application to the test server I get the message "CS0234: The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...

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.