PostGIS  3.1.6dev-r@@SVN_REVISION@@

◆ quote_identifier()

char* quote_identifier ( const char *  s)

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

2258 {
2259  char *result = malloc(strlen(s) * 2 + 3);
2260  char *r = result;
2261 
2262  *r++ = '"';
2263  while (*s)
2264  {
2265  if (*s == '"')
2266  *r++ = *s;
2267  *r++ = *s;
2268  s++;
2269  }
2270  *r++ = '"';
2271  *r++ = '\0';
2272 
2273  return result;
2274 }
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: