CONTENTS | INDEX | PREV | NEXT
fhprintf
NAME
fhprintf - formatted printing to a DOS file handle
SYNOPSIS
int n = fhprintf(fh, ctl, ...);
BPTR fh;
const char *ctl;
FUNCTION
fhprintf() provides a method of using DICE's pfmt lib to do
formatted printing to a file handle instead of a stdio file
pointer. Output is unbuffered and thus not very efficient,
but the call can be extremely useful when debugging libraries
and such.
EXAMPLE
void
_main(ac, av)
int ac;
char *av[];
{
fhprintf(Output(), "hello world %d!n", 23);
}
INPUTS
BPTR fh; DOS file handle
const char *ctl; format string, see printf()
RESULTS
int n; number of characters output
SEE ALSO
printf, sprintf, vsprintf, fprintf, vfprintf