Docs » Autodocs » dos.library » VPrintf
VPrintf -- format and print string (buffered) (V36)
count = VPrintf(fmt, argv) D0 D1 D2 LONG VPrintf(STRPTR, LONG *) count = Printf(fmt, ...) LONG Printf(STRPTR, ...)
Writes the formatted string and values to Output(). 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. Note: RawDoFmt assumes 16 bit ints, so you will usually need 'l's in your formats (ex: %ld versus %d).
fmt - exec.library 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 Printf() 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.
VFPrintf(), VFWritef(), exec.library/RawDoFmt(), FPutC()
|