PostGIS 3.7.0dev-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 if (result == NULL)
2254 return NULL;
2255
2256 *r++ = '"';
2257 while (*s)
2258 {
2259 if (*s == '"')
2260 *r++ = *s;
2261 *r++ = *s;
2262 s++;
2263 }
2264 *r++ = '"';
2265 *r++ = '\0';
2266
2267 return result;
2268}
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: