LINUX CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>

7-DAY TOP DOWNLOAD

#
Program
Chromium OS 0.4.22.8
4,365
BackTrack 3.0 / 4.0
Pre-Final

3,633
Wine 1.0.1 / 1.1.33
2,857
VLC 1.0.3
2,826
Yahoo Messenger
1.0.4

2,420
Chrome OS 0.4.237
Beta

2,095
Ubuntu 9.10
2,095
Thunderbird PST
Import plugin 1.2

1,811
Adobe Flash Player
for Linux 10.0.32.18
/ 10.1 Beta

1,685
Fedora 12
1,643

WEEK'S BEST

  • Ubuntu 9.10
  • Ubuntu Netbook Rem...
  • Pidgin 2.6.3
  • Wine 1.0.1 / 1.1.33
  • Linux Kernel 2.6.3...
  • Mozilla Firefox 3....
  • Fedora 12
  • OpenOffice.org 3.1.1
  • Firestarter 1.0.3
  • The Gimp 2.6.7 / 2...
  • FileZilla 3.3.0.1
  • Transmission 1.76
  • Super Grub Disk 0....
  • Gufw 9.04.2
  • Skype 2.0.072 / 2....
  • openSUSE Linux 11.2
  • Opera 10.10 Final
  • Adobe Flash Player...
  • wine-doors 0.1.3
  • Google Gadgets 0.1...
  • Home / Linux / Programming / Libraries

    libHX 3.1

    Download button

    No screenshots available
    Downloads: 647  Add to download basket  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.6/5)
    15 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jan Engelhardt | More programs
    GPL / FREE
    September 14th, 2009, 12:03 GMT [view history]
    ROOT / Programming / Libraries

     Read user reviews (0)  Add a review  Refer to a friend  Subscribe

     

    libHX description

     

    A library for common data structures (tree, map, linked list), string operations, configuration-related tasks and more.

    libHX is a library for common data structures (tree, map, linked list), string operations, configuration-related tasks and more.

    - rbtree with key-value pair extension (HXbtree_*)

    Originally created to provide a data structure like Perl's associative arrays. Uses an rbtree as underlying engine for somewhat quick insertion and deletion and small memory footprint for ordered traversals. (Using a hash would have meant to gather all keys first and sort them.)

    - deques (HXdeque_*, HXlist_*, HXclist_*)

    Deques - double-ended queues, essentially a doubly-linked list - are suitable for both providing stack and queue functionality.

    - directory handling (HXdir_*)

    HXdir provides for opendir-readdir-closedir semantics. Windows uses a different kind, so it had to be naturally covered up. On the other hand, Solaris's readdir() implementation is nasty in terms of memory management. HXdir covers up these discrepancies and provides a sane Linux-style readdir.

    Convenience functions mkdir (create all missing parents), rrmdir (rm -Rf) are also available.

    - string formatter with placeholders (HXformat_*)

    HXformat is something in the direction of printf(), but the argument list is not implemented by means of varargs, so is flexible even beyond compile time. You can change the format string - in fact, just let the user configuration provide it - without having to worry about argument evaluation problems. Positional and optional arguments are simply freely choosable.

    - memory containers, auto-sizing string ops (hmc_*)

    At the cost of slightly increased number memory allocations as you work with the buffers, the hmc collection of functions provide scripting-level semantics for strings. Appending to a string is simply hmc_strcat(&s, "123") [cf. $s .= "123"], without having to worry about overflowing a buffer.

    - option parsing (HXoption_*)

    Put blunt, libpopt failed to do some elementary things and there was no maintainer to fix it. Well, it's packaged with rpm which already diverged in all distros.

    < HXoption is table- and callback-based, much like popt.

    - shellconfig parser (HXshconfig_*)

    Parsers shconfig files. Their format is a subset of shell code. Files in /etc/sysconfig are commonly shconfig-style.

    - random number gathering (HXrand_*)

    Conveniently use /dev/urandom when it is available.

    - common string operations
    basename, chomp, dirname, getl(ine), split, strlower/-upper, str*trim, strsep, strsep2, etc.

    What's New in This Release: [ read full changelog ]

    · This release fixes a potential underflow in value-based map key comparison operations.

      


    TAGS:

    data structures | linked list | string operations | tree | map | strings



    HTML code for linking to this page:


    Go to top

    Windows tabGames tabDrivers tabMac tabLinux tabScripts tabMobile tabHandheld tabGadgets tabNews tab

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   ENTER NEWS SITE   |   ENGLISH BOARD   |   ROMANIAN FORUM