** 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. */
| 16606 | ** adding a newline at the end, and then return X. |
| 16607 | */ |
| 16608 | static 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 |
nothing calls this directly
no test coverage detected