PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ stringbuffer_clear()

void stringbuffer_clear ( stringbuffer_t s)

Reset the stringbuffer_t.

Useful for starting a fresh string without the expense of freeing and re-allocating a new stringbuffer_t.

Definition at line 83 of file stringbuffer.c.

References stringbuffer_t::str_end, and stringbuffer_t::str_start.

Referenced by ShpLoaderGenerateSQLRowStatement(), ShpLoaderGetSQLFooter(), ShpLoaderGetSQLHeader(), and stringbuffer_set().

84 {
85  s->str_start[0] = '\0';
86  s->str_end = s->str_start;
87 }
char * str_start
Definition: stringbuffer.h:52
Here is the caller graph for this function: