MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / shellPutsFunc

Function shellPutsFunc

modules/dasSQLITE/sqlite/shell.c:16608–16617  ·  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

16606** adding a newline at the end, and then return X.
16607*/
16608static void shellPutsFunc(
16609 sqlite3_context *pCtx,
16610 int nVal,
16611 sqlite3_value **apVal
16612){
16613 ShellState *p = (ShellState*)sqlite3_user_data(pCtx);
16614 (void)nVal;
16615 utf8_printf(p->out, "%s\n", sqlite3_value_text(apVal[0]));
16616 sqlite3_result_value(pCtx, apVal[0]);
16617}
16618
16619/*
16620** If in safe mode, print an error message described by the arguments

Callers

nothing calls this directly

Calls 1

utf8_printfFunction · 0.85

Tested by

no test coverage detected