PostGIS  3.0.6dev-r@@SVN_REVISION@@

◆ quote_identifier()

char* quote_identifier ( const char *  s)

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

2257 {
2258  char *result = malloc(strlen(s) * 2 + 3);
2259  char *r = result;
2260 
2261  *r++ = '"';
2262  while (*s)
2263  {
2264  if (*s == '"')
2265  *r++ = *s;
2266  *r++ = *s;
2267  s++;
2268  }
2269  *r++ = '"';
2270  *r++ = '\0';
2271 
2272  return result;
2273 }
char * s
Definition: cu_in_wkt.c:23
char * r
Definition: cu_in_wkt.c:24
void * malloc(YYSIZE_T)

References malloc(), r, and s.

Referenced by ShpDumperOpenTable().

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