PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ quote_identifier()

char* quote_identifier ( const char *  s)

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

References malloc(), r, and s.

Referenced by ShpDumperOpenTable().

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