PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ quote_identifier()

char* quote_identifier ( const char *  s)

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

References malloc(), r, and s.

Referenced by ShpDumperOpenTable().

2254 {
2255  char *result = malloc(strlen(s) * 2 + 3);
2256  char *r = result;
2257 
2258  *r++ = '"';
2259  while (*s)
2260  {
2261  if (*s == '"')
2262  *r++ = *s;
2263  *r++ = *s;
2264  s++;
2265  }
2266  *r++ = '"';
2267  *r++ = '\0';
2268 
2269  return result;
2270 }
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: