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

Function captureOutputCallback

modules/dasSQLITE/sqlite/shell.c:17817–17828  ·  view source on GitHub ↗

** This is the callback routine from sqlite3_exec() that appends all ** output onto the end of a ShellText object. */

Source from the content-addressed store, hash-verified

17815** output onto the end of a ShellText object.
17816*/
17817static int captureOutputCallback(void *pArg, int nArg, char **azArg, char **az){
17818 ShellText *p = (ShellText*)pArg;
17819 int i;
17820 UNUSED_PARAMETER(az);
17821 if( azArg==0 ) return 0;
17822 if( p->n ) appendText(p, "|", 0);
17823 for(i=0; i<nArg; i++){
17824 if( i ) appendText(p, ",", 0);
17825 if( azArg[i] ) appendText(p, azArg[i], 0);
17826 }
17827 return 0;
17828}
17829
17830/*
17831** Generate an appropriate SELFTEST table in the main database.

Callers

nothing calls this directly

Calls 1

appendTextFunction · 0.85

Tested by

no test coverage detected