Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 209 → Rev 210

/cvi/instr/DRS/drs4.c
52,9 → 52,30
}
 
 
char strbuf[0xFF];
 
int gLog=0;
 
int printf(const char *format, ...) {
va_list aptr;
int ret;
FILE *flog;
 
va_start(aptr, format);
ret = vsprintf(strbuf, format, aptr);
va_end(aptr);
SetCtrlVal(ph,PANEL_STDIO,strbuf);
 
if (gLog) {
flog = fopen ("stdio.log", "a");
fprintf (flog, "%s", strbuf);
fclose (flog);
}
return(ret);
}
 
 
 
static void start_timer (double tout) {
SetCtrlAttribute (ph, PANEL_TIMER, ATTR_INTERVAL, tout);
SetCtrlAttribute (ph, PANEL_TIMER, ATTR_ENABLED, 1);