Skip to content

ericherman/libehstr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The "ehstr.h" header file defines:

* utob, for printing values as strings of "0"s and "1"s
   (stdlib.h "strtoul" can be used to round-trip)
* revstr, to reverse the contents of a string in place
   (converts big to little endian)
* decimal_to_hex, to convert an strings of decimal digits to hex
   (arbitrarily long strings, treats as unsigned)
* hex_to_decimal, converts hex back to decimal
   (also arbitrarily long strings, also treats as unsigned)
* trimstr, to trim leading and trailing whitespace from a string
   (in place)

Cloning
-------
git clone -o upstream https://github.com/ericherman/libehstr.git &&
 cd libehstr &&
 git submodule update --init --recursive &&
 autoreconf -iv &&
 ./configure &&
 make -j check


Packaging
---------
Typically just include it as a git submodule, autotools packaging is
available:
autoreconf -iv &&
 ./configure &&
 make &&
 make distcheck &&
 echo "Success."


License
-------
GNU Lesser General Public License (LGPL), version 3 or later.
See COPYING and COPYING.LESSER for details.

About

a few handy stirng functions, like converting values to strings of "0"s and "1"s and such

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Stars

Watchers

Forks

Packages

 
 
 

Contributors