PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ stringbuffer_lastchar()

char stringbuffer_lastchar ( stringbuffer_t s)

Return the last character in the buffer.

Definition at line 115 of file stringbuffer.c.

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

Referenced by empty_to_wkt_sb().

116 {
117  if( s->str_end == s->str_start )
118  return 0;
119 
120  return *(s->str_end - 1);
121 }
char * str_start
Definition: stringbuffer.h:52
Here is the caller graph for this function: