PostGIS 3.6.2dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ quote_identifier()

char * quote_identifier ( const char *  s)

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

2249{
2250 char *result = malloc(strlen(s) * 2 + 3);
2251 char *r = result;
2252
2253 *r++ = '"';
2254 while (*s)
2255 {
2256 if (*s == '"')
2257 *r++ = *s;
2258 *r++ = *s;
2259 s++;
2260 }
2261 *r++ = '"';
2262 *r++ = '\0';
2263
2264 return result;
2265}
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: