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.


lx_lib is on github.

ari edelkind - [contact]