#include <sys/types.h>
Include dependency graph for stralloc.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | stralloc_t |
| dynamic string allocator tracking data More... | |
Functions | |
| void | stralloc_init (stralloc_t *sa) |
| initialize dynamic string allocator | |
| void | stralloc_zero (stralloc_t *sa) |
| truncate string length to zero | |
| int | stralloc_ready (stralloc_t *sa, size_t len) |
| ensure that enough memory has been allocated | |
| int | stralloc_readyplus (stralloc_t *sa, size_t len) |
| ensure that enough memory has been allocated | |
| char * | stralloc_finalize (stralloc_t *sa) |
| finalize dynamic string in new buffer | |
| void | stralloc_free (stralloc_t *sa) |
| deallocate all memory | |
| int | stralloc_copyb (stralloc_t *dst, const char *src, size_t len) |
| copy a static string to a dynamic one | |
| int | stralloc_copys (stralloc_t *dst, const char *src) |
| copy a static string to a dynamic one | |
| int | stralloc_copy (stralloc_t *dst, const stralloc_t *src) |
| copy one dynamic string to another | |
| int | stralloc_catb (stralloc_t *dst, const char *src, size_t len) |
| concatenate a dynamic string and a static one | |
| int | stralloc_catf (stralloc_t *dst, const char *fmt,...) |
| concatenate a dynamic string and a static one using formatted conversion | |
| int | stralloc_catm (stralloc_t *dst,...) |
| concatenate a dynamic string and multiple static ones | |
| int | stralloc_cats (stralloc_t *dst, const char *src) |
| concatenate a dynamic string and a static one | |
| int | stralloc_cat (stralloc_t *dst, const stralloc_t *src) |
| concatenate two dynamic strings | |
| int | stralloc_cmp (const stralloc_t *a, const stralloc_t *b) |
| compare two dynamic strings | |
1.5.2