PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ stringbuffer_getlength()

int stringbuffer_getlength ( stringbuffer_t s)

Returns the length of the current string, not including the null terminator (same behavior as strlen()).

Definition at line 167 of file stringbuffer.c.

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

Referenced by lwgeom_to_wkt().

168 {
169  return (s->str_end - s->str_start);
170 }
char * str_start
Definition: stringbuffer.h:52
Here is the caller graph for this function: