2 * John Limpert johnl@gronk.UUCP uunet!n3dmc!gronk!johnl
17 vsprintf(str
, fmt
, ap
)
24 f
._flag
= _IOWRT
+_IOMYBUF
;
25 f
._ptr
= (char *)str
; /* My copy of BSD stdio.h has this as (char *)
26 * with a comment that it should be
27 * (unsigned char *). Since this code is
28 * intended for use on a vanilla BSD system,
29 * we'll stick with (char *) for now.
32 len
= _doprnt(fmt
, ap
, &f
);
38 vfprintf(iop
, fmt
, ap
)
45 len
= _doprnt(fmt
, ap
, iop
);
46 return (ferror(iop
) ? EOF
: len
);
56 len
= _doprnt(fmt
, ap
, stdout
);
57 return (ferror(stdout
) ? EOF
: len
);