PostGIS 3.6.2dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ 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}
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition cu_print.c:267

References result.

Referenced by postgis_libjson_version().

Here is the caller graph for this function: