MCPcopy Create free account
hub / github.com/apache/cloudberry / csv_escaped_print

Function csv_escaped_print

src/fe_utils/print.c:1726–1739  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1724
1725
1726static void
1727csv_escaped_print(const char *str, FILE *fout)
1728{
1729 const char *p;
1730
1731 fputc('"', fout);
1732 for (p = str; *p; p++)
1733 {
1734 if (*p == '"')
1735 fputc('"', fout); /* double quotes are doubled */
1736 fputc(*p, fout);
1737 }
1738 fputc('"', fout);
1739}
1740
1741static void
1742csv_print_field(const char *str, FILE *fout, char sep)

Callers 1

csv_print_fieldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected