13
vsprintf(str, fmt, ap)
20
f._flag = _IOWRT+_IOSTRG;
21
f._ptr = (char *)str; /* My copy of BSD stdio.h has this as (char *)
22
* with a comment that it should be
23
* (unsigned char *). Since this code is
24
* intended for use on a vanilla BSD system,
25
* we'll stick with (char *) for now.
28
len = _doprnt(fmt, ap, &f);
34
vfprintf(iop, fmt, ap)
41
len = _doprnt(fmt, ap, iop);
42
return (ferror(iop) ? EOF : len);
52
len = _doprnt(fmt, ap, stdout);
53
return (ferror(stdout) ? EOF : len);