PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ quote_identifier()

char* quote_identifier ( const char *  s)

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

2243 {
2244  char *result = malloc(strlen(s) * 2 + 3);
2245  char *r = result;
2246 
2247  *r++ = '"';
2248  while (*s)
2249  {
2250  if (*s == '"')
2251  *r++ = *s;
2252  *r++ = *s;
2253  s++;
2254  }
2255  *r++ = '"';
2256  *r++ = '\0';
2257 
2258  return result;
2259 }
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:267
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: