MCPcopy Create free account
hub / github.com/F-Stack/f-stack / csv_append_newline

Function csv_append_newline

tools/libxo/encoder/csv/enc_csv.c:322–329  ·  view source on GitHub ↗

* Append a newline to the buffer, following the settings of the "dos" * flag. */

Source from the content-addressed store, hash-verified

320 * flag.
321 */
322static void
323csv_append_newline (xo_buffer_t *xbp, csv_private_t *csv)
324{
325 if (csv->c_flags & CF_DOS_NEWLINE)
326 xo_buf_append(xbp, "\r\n", 2);
327 else
328 xo_buf_append(xbp, "\n", 1);
329}
330
331/*
332 * Create a 'record' of 'fields' from our recorded leaf values. If

Callers 1

csv_emit_recordFunction · 0.85

Calls 1

xo_buf_appendFunction · 0.85

Tested by

no test coverage detected