|
|
1.1 ! root 1: #define FIO_IMP ! 2: #include <varargs.h> ! 3: #include <fio.h> ! 4: ! 5: /* VARARGS 2 */ ! 6: Fprint(f, fmt, va_alist) ! 7: int f; ! 8: char *fmt; ! 9: va_dcl ! 10: { ! 11: char buf[FIOBSIZE], *out; ! 12: register long n; ! 13: va_list ap; ! 14: extern char *doprint(); ! 15: ! 16: va_start(ap); ! 17: out = doprint(buf, fmt, &ap); ! 18: va_end(ap); ! 19: n = out-buf; ! 20: if(Fwrite(f, buf, n) != n) ! 21: return(-1); ! 22: else ! 23: return((int)n); ! 24: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.