PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ text2cstring()

static char* text2cstring ( const text *  textptr)
static

Definition at line 55 of file lwgeom_in_geojson.c.

56 {
57  size_t size = VARSIZE(textptr) - VARHDRSZ;
58  char *str = lwalloc(size+1);
59  memcpy(str, VARDATA(textptr), size);
60  str[size]='\0';
61  return str;
62 }
void * lwalloc(size_t size)
Definition: lwutil.c:229

References lwalloc().

Referenced by geom_from_geojson().

Here is the call graph for this function:
Here is the caller graph for this function: