MCPcopy Create free account
hub / github.com/audacity/audacity / shellPutsFunc

Function shellPutsFunc

lib-src/sqlite/shell.c:11423–11432  ·  view source on GitHub ↗

** SQL function: shell_putsnl(X) ** ** Write the text X to the screen (or whatever output is being directed) ** adding a newline at the end, and then return X. */

Source from the content-addressed store, hash-verified

11421** adding a newline at the end, and then return X.
11422*/
11423static void shellPutsFunc(
11424 sqlite3_context *pCtx,
11425 int nVal,
11426 sqlite3_value **apVal
11427){
11428 ShellState *p = (ShellState*)sqlite3_user_data(pCtx);
11429 (void)nVal;
11430 utf8_printf(p->out, "%s\n", sqlite3_value_text(apVal[0]));
11431 sqlite3_result_value(pCtx, apVal[0]);
11432}
11433
11434/*
11435** SQL function: edit(VALUE)

Callers

nothing calls this directly

Calls 1

utf8_printfFunction · 0.85

Tested by

no test coverage detected