stralloc_t Struct Reference
[Dynamic string allocator]

#include <stralloc.h>


Detailed Description

dynamic string allocator tracking data

This struct is used to keep track of the dynamic string state, i.e. its contents, its length and its additionaly allocated memory.

Definition at line 69 of file stralloc.h.

Data Fields

char * s
size_t len
size_t a


Field Documentation

char* stralloc_t::s

pointer to dynamic string

Definition at line 70 of file stralloc.h.

Referenced by stralloc_cat(), stralloc_catb(), stralloc_cmp(), stralloc_copy(), stralloc_copyb(), stralloc_finalize(), stralloc_free(), stralloc_init(), stralloc_ready(), and stralloc_readyplus().

size_t stralloc_t::len

current length of s

Definition at line 71 of file stralloc.h.

Referenced by stralloc_cat(), stralloc_catb(), stralloc_cmp(), stralloc_copy(), stralloc_copyb(), stralloc_finalize(), stralloc_init(), stralloc_readyplus(), stralloc_zero(), and strtok_tostr().

size_t stralloc_t::a

additional free memory in s

Definition at line 72 of file stralloc.h.

Referenced by stralloc_init(), and stralloc_ready().


The documentation for this struct was generated from the following file:
Generated on Tue Jun 19 20:38:46 2007 for lucid by  doxygen 1.5.2