PostGIS  2.5.0beta2dev-r@@SVN_REVISION@@

◆ stringbuffer_init_with_size()

static void stringbuffer_init_with_size ( stringbuffer_t s,
size_t  size 
)
static

Definition at line 41 of file stringbuffer.c.

References stringbuffer_t::capacity, lwalloc(), stringbuffer_t::str_end, and stringbuffer_t::str_start.

Referenced by stringbuffer_create_with_size(), and stringbuffer_init().

42 {
43  s->str_start = lwalloc(size);
44  s->str_end = s->str_start;
45  s->capacity = size;
46  memset(s->str_start, 0, size);
47 }
char * str_start
Definition: stringbuffer.h:41
void * lwalloc(size_t size)
Definition: lwutil.c:229
Here is the call graph for this function:
Here is the caller graph for this function: