PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ quote_identifier()

char* quote_identifier ( const char *  s)

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

2277 {
2278  char *result = malloc(strlen(s) * 2 + 3);
2279  char *r = result;
2280 
2281  *r++ = '"';
2282  while (*s)
2283  {
2284  if (*s == '"')
2285  *r++ = *s;
2286  *r++ = *s;
2287  s++;
2288  }
2289  *r++ = '"';
2290  *r++ = '\0';
2291 
2292  return result;
2293 }
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: