PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ text2cstring()

static char* text2cstring ( const text *  textptr)
static

Definition at line 52 of file lwgeom_in_geojson.c.

53 {
54  size_t size = VARSIZE_ANY_EXHDR(textptr);
55  char *str = lwalloc(size+1);
56  memcpy(str, VARDATA(textptr), size);
57  str[size]='\0';
58  return str;
59 }
void * lwalloc(size_t size)
Definition: lwutil.c:227
#define str(s)

References lwalloc(), and str.

Referenced by geom_from_geojson().

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