PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ cstring2text()

static text* cstring2text ( const char *  cstring)
static

Definition at line 44 of file lwgeom_in_geojson.c.

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

Referenced by postgis_libjson_version().

Here is the caller graph for this function: