PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ quote_identifier()

char* quote_identifier ( const char *  s)

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

2246 {
2247  char *result = malloc(strlen(s) * 2 + 3);
2248  char *r = result;
2249 
2250  *r++ = '"';
2251  while (*s)
2252  {
2253  if (*s == '"')
2254  *r++ = *s;
2255  *r++ = *s;
2256  s++;
2257  }
2258  *r++ = '"';
2259  *r++ = '\0';
2260 
2261  return result;
2262 }
char * s
Definition: cu_in_wkt.c:23
char * r
Definition: cu_in_wkt.c:24
char result[OUT_DOUBLE_BUFFER_SIZE]
Definition: cu_print.c:262
void * malloc(YYSIZE_T)

References malloc(), r, result, and s.

Referenced by ShpDumperOpenTable().

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