PostGIS  2.1.10dev-r@@SVN_REVISION@@
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 84 of file stringbuffer.c.

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

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

85 {
86  s->str_start[0] = '\0';
87  s->str_end = s->str_start;
88 }
char * str_start
Definition: stringbuffer.h:53

Here is the caller graph for this function: