PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ stringbuffer_aprintf()

int stringbuffer_aprintf ( stringbuffer_t s,
const char *  fmt,
  ... 
)

Appends a formatted string to the current string buffer, using the format and argument list provided.

Returns -1 on error, check errno for reasons, as documented in the printf man page.

Definition at line 253 of file stringbuffer.c.

References r, and stringbuffer_avprintf().

Referenced by lwcollection_to_kml2_sb(), lwgeom_to_wkt(), lwline_to_kml2_sb(), lwpoint_to_kml2_sb(), lwpoly_to_kml2_sb(), nd_box_to_json(), nd_stats_to_json(), pointarray_to_encoded_polyline(), ptarray_to_kml2_sb(), ptarray_to_wkt_sb(), ShpLoaderGenerateSQLRowStatement(), ShpLoaderGetSQLFooter(), ShpLoaderGetSQLHeader(), and test_stringbuffer_aprintf().

254 {
255  int r;
256  va_list ap;
257  va_start(ap, fmt);
258  r = stringbuffer_avprintf(s, fmt, ap);
259  va_end(ap);
260  return r;
261 }
char * r
Definition: cu_in_wkt.c:24
def fmt
Definition: pixval.py:92
static int stringbuffer_avprintf(stringbuffer_t *s, const char *fmt, va_list ap)
Appends a formatted string to the current string buffer, using the format and argument list provided...
Definition: stringbuffer.c:204
Here is the call graph for this function:
Here is the caller graph for this function: