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

Function dumpstring

tools/cdb2_sqlreplay/cdb2_sqlreplay.cpp:356–369  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356void dumpstring(FILE *f, char *s, int quotes, int quote_quotes)
357{
358 if (quotes)
359 fprintf(f, "'");
360 while (*s) {
361 if (*s == '\'' && quote_quotes)
362 fprintf(f, "''");
363 else
364 fprintf(f, "%c", *s);
365 s++;
366 }
367 if (quotes)
368 fprintf(f, "'");
369}
370
371int64_t hrtime() {
372 struct timeval t;

Callers 1

printColFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected