Safe Strings 2.0.1 reviewDownload
Safe Strings is a small C library that handles C strings in a safe way
Safe Strings is a small C library that handles C strings in a safe way. The functions of this library look at the necessary space for the operations and try to reserve that space (with malloc or realloc).
Safe Strings's functions only begin working with their tasks when the memory allocation is successful.
The current release is the Version 1.0.4 and has more than 19 different functions. I added 4 functions that (I think) should be implented in the ANSI C Standard, but they are not.
Please note that the library doesn't contain only this 4 functions, they are more or less an example of what kind of function you will find here. The tarball contains under docs the man pages of all functions.
There are other functions implemented, but they are well explain in the documentation and manual pages.
What's New in This Release:
This release moves towards the project's goal of ease of use.
Instead of handling with double pointers (which increases the risk of setting allocated pointers to NULL, for example), this release creates a string object that contains information about the C string, like the length and the actual amount of allocated bytes for the string.
Safe Strings 2.0.1 search tags