Docs » Autodocs » dos.library » VFPrintf
VFPrintf -- format and print a string to a file (buffered) (V36)
count = VFPrintf(fh, fmt, argv) D0 D1 D2 D3 LONG VFPrintf(BPTR, STRPTR, LONG *) count = FPrintf(fh, fmt, ...) LONG FPrintf(BPTR, STRPTR, ...)
Writes the formatted string and values to the given file. This routine is assumed to handle all internal buffering so that the formatting string and resultant formatted values can be arbitrarily long. Any secondary error code is returned in IoErr(). This routine is buffered.
fh - Filehandle to write to fmt - RawDoFmt() style formatting string argv - Pointer to array of formatting values
count - Number of bytes written or -1 (EOF) for an error
The prototype for FPrintf() currently forces you to cast the first varargs parameter to LONG due to a deficiency in the program that generates fds, prototypes, and amiga.lib stubs.
VPrintf(), VFWritef(), exec.library/RawDoFmt(), FPutC()
|