Lines Matching refs:out
183 FILE *out; /* Write results here */
195 char outfile[FILENAME_MAX]; /* Filename for *out */
228 static void output_quoted_string(FILE *out, const char *z){
235 fprintf(out,"'%s'",z);
237 fprintf(out,"'");
241 fprintf(out,"''");
244 fprintf(out,"%.*s''",i,z);
247 fprintf(out,"%s",z);
251 fprintf(out,"'");
259 static void output_html_string(FILE *out, const char *z){
264 fprintf(out,"%.*s",i,z);
267 fprintf(out,"<");
269 fprintf(out,"&");
300 if( p->cnt++>0 ) fprintf(p->out,"\n");
302 fprintf(p->out,"%*s = %s\n", w, azCol[i],
326 fprintf(p->out,"%-*.*s%s",w,w,azCol[i], i==nArg-1 ? "\n": " ");
337 fprintf(p->out,"%-*.*s%s",w,w,"-----------------------------------"
351 fprintf(p->out,"%-*.*s%s",w,w,
360 fprintf(p->out,"%s%s",azCol[i], i==nArg-1 ? "\n" : p->separator);
367 fprintf(p->out, "%s", z);
369 fprintf(p->out, "%s", p->separator);
371 fprintf(p->out, ";\n");
373 fprintf(p->out, "\n");
380 fprintf(p->out,"<TR>");
382 fprintf(p->out,"<TH>%s</TH>",azCol[i]);
384 fprintf(p->out,"</TR>\n");
387 fprintf(p->out,"<TR>");
389 fprintf(p->out,"<TD>");
390 output_html_string(p->out, azArg[i] ? azArg[i] : p->nullvalue);
391 fprintf(p->out,"</TD>\n");
393 fprintf(p->out,"</TR>\n");
398 fprintf(p->out,"INSERT INTO %s VALUES(",p->zDestTable);
402 fprintf(p->out,"%sNULL",zSep);
404 fprintf(p->out,"%s%s",zSep, azArg[i]);
406 if( zSep[0] ) fprintf(p->out,"%s",zSep);
407 output_quoted_string(p->out, azArg[i]);
410 fprintf(p->out,");\n");
464 fprintf(p->out, "%s;\n", azArg[2]);
597 fprintf(p->out, "BEGIN TRANSACTION;\n");
620 fprintf(p->out, "COMMIT;\n");
759 if( p->out!=stdout ){
760 fclose(p->out);
763 p->out = stdout;
766 p->out = fopen(azArg[1], "wb");
767 if( p->out==0 ){
769 p->out = stdout;
881 fprintf(p->out,"%9.9s: %s\n","echo", p->echoOn ? "on" : "off");
882 fprintf(p->out,"%9.9s: %s\n","explain", p->explainPrev.valid ? "on" :"off");
883 fprintf(p->out,"%9.9s: %s\n","headers", p->showHeader ? "on" : "off");
884 fprintf(p->out,"%9.9s: %s\n","mode", modeDescr[p->mode]);
885 fprintf(p->out,"%9.9s: %s\n","nullvalue", p->nullvalue);
886 fprintf(p->out,"%9.9s: %s\n","output",
888 fprintf(p->out,"%9.9s: %s\n","separator", p->separator);
889 fprintf(p->out,"%9.9s: ","width");
891 fprintf(p->out,"%d ",p->colWidth[i]);
893 fprintf(p->out,"\n\n");
1030 while( fflush(p->out), (zLine = one_input_line(zSql, in))!=0 ){
1058 fprintf(stderr,"%s: out of memory!\n", Argv0);
1156 fprintf(stderr,"%s: out of memory!\n", Argv0);
1263 data.out = stdout;