PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ cstring2text()

static text* cstring2text ( const char *  cstring)
static

Definition at line 41 of file lwgeom_in_geojson.c.

42 {
43  size_t len = strlen(cstring);
44  text *result = (text *) palloc(len + VARHDRSZ);
45  SET_VARSIZE(result, len + VARHDRSZ);
46  memcpy(VARDATA(result), cstring, len);
47 
48  return result;
49 }

Referenced by postgis_libjson_version().

Here is the caller graph for this function: