internet security for the paranoid.
lx_lib structural memory library
ari edelkind - custom works
lx_lib handles memory allocations as structures, keeping important
information such as the remaining allocated space and the length of the used
string internal to each variable (or descriptor). Much of it was initially
inspired by Dan Bernstein's stralloc library,
but the two are not compatible, nor has there ever been any intention to
make them compatible.
Some benefits of lx_lib include:
- strings need not be scanned to determine their length
- the amount of allocated string remaining is easily determined
- promotes more secure programming practices
- if used correctly, lx_lib can offer a significant speed increase over
- easy-to-use methods for manipulating strings
- generic descriptor support for buffered i/o
- generic descriptors enable fast scanning of input for specific
characters (e.g. a newline)
Incomplete documentation (and another blurb) may be found
However, you may find the definitions atop each function (in the source
code) more helpful.
Files in the bin directory will offer some examples of how to
use the library. Other programs that use lx_lib will of course do the same.
You may subscribe to the lx_lib mailing list by sending an empty message to
firstname.lastname@example.org. As of
yet, archives are not available.
The current version is
The current version can always be downloaded as
MD5 sums may be viewed
ari edelkind - [contact]