PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ quote_identifier()

char* quote_identifier ( const char *  s)

Definition at line 2249 of file pgsql2shp-core.c.

References malloc(), r, and s.

Referenced by ShpDumperOpenTable().

2250 {
2251  char *result = malloc(strlen(s) * 2 + 3);
2252  char *r = result;
2253 
2254  *r++ = '"';
2255  while (*s)
2256  {
2257  if (*s == '"')
2258  *r++ = *s;
2259  *r++ = *s;
2260  s++;
2261  }
2262  *r++ = '"';
2263  *r++ = '\0';
2264 
2265  return result;
2266 }
char * r
Definition: cu_in_wkt.c:24
char * s
Definition: cu_in_wkt.c:23
void * malloc(YYSIZE_T)
Here is the call graph for this function:
Here is the caller graph for this function: