PostGIS  2.5.0beta2dev-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 90 of file stringbuffer.c.

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

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

91 {
92  s->str_start[0] = '\0';
93  s->str_end = s->str_start;
94 }
char * str_start
Definition: stringbuffer.h:41
Here is the caller graph for this function: