sponsored by episec: 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:


Incomplete documentation (and another blurb) may be found here.
However, you may find the definitions atop each function (in the source code) more helpful.

additional notes

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 lx_lib-subscribe@list.episec.com. As of yet, archives are not available.


The current version is lx_lib-20100826-1.tar.gz. The current version can always be downloaded as lx_lib-current.tar.gz.

MD5 sums may be viewed here.

ari edelkind - [contact]