PostGIS  3.4.0dev-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 247 of file stringbuffer.c.

248 {
249  int r;
250  va_list ap;
251  va_start(ap, fmt);
252  r = stringbuffer_avprintf(s, fmt, ap);
253  va_end(ap);
254  return r;
255 }
char * s
Definition: cu_in_wkt.c:23
char * r
Definition: cu_in_wkt.c:24
def fmt
Definition: pixval.py:93
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:196

References pixval::fmt, r, s, and stringbuffer_avprintf().

Referenced by asgeojson_bbox(), asgeojson_srs(), asgml2_collection(), asgml2_gbox(), asgml2_line(), asgml2_multi(), asgml2_point(), asgml2_poly(), asgml3_circstring(), asgml3_collection(), asgml3_compound(), asgml3_curvepoly(), asgml3_gbox(), asgml3_line(), asgml3_multi(), asgml3_multicurve(), asgml3_multisurface(), asgml3_point(), asgml3_poly(), asgml3_psurface(), asgml3_tin(), asgml3_triangle(), assvg_point(), asx3d3_collection_sb(), asx3d3_line_sb(), asx3d3_mline_coordindex_sb(), asx3d3_mpoly_coordindex_sb(), asx3d3_multi_sb(), asx3d3_poly_sb(), asx3d3_psurface_sb(), asx3d3_tin_sb(), corner_to_subfield_sb(), gbox_to_marc21_sb(), getMaxFieldSize(), lwcollection_to_kml2_sb(), lwgeom_to_marc21(), lwgeom_to_wkt_internal(), lwline_to_kml2_sb(), lwpoint_to_kml2_sb(), lwpoly_to_kml2_sb(), lwtriangle_to_kml2_sb(), nd_box_to_json(), nd_stats_to_grid(), nd_stats_to_json(), pointArray_svg_abs(), pointArray_svg_arc(), pointArray_svg_rel(), pointarray_to_encoded_polyline(), postgis_proj_version(), ptarray_to_x3d3_sb(), rt_raster_gdal_contour(), ShpDumperGetConnectionStringFromConn(), ShpDumperOpenTable(), ShpLoaderGenerateSQLRowStatement(), ShpLoaderGetSQLCopyStatement(), ShpLoaderGetSQLFooter(), ShpLoaderGetSQLHeader(), and test_stringbuffer_aprintf().

Here is the call graph for this function: