MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / dumpstring

Function dumpstring

tools/cdb2sql/cdb2sql.cpp:146–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void dumpstring(FILE *f, char *s, int quotes, int quote_quotes)
147{
148 if (quotes)
149 fprintf(f, "'");
150 while (*s) {
151 if (*s == '\'' && quote_quotes)
152 fprintf(f, "''");
153 else
154 fprintf(f, "%c", *s);
155 s++;
156 }
157 if (quotes)
158 fprintf(f, "'");
159}
160
161#define verbose_print(fmt, args...) \
162 do { \

Callers 1

print_columnFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected