@need 3200

@node Formatted Printing With printfmt
@chapter Formatted Printing With printfmt

The function @code{printfmt} provides the functionality of the standard
function @code{printf} within the context of the @emph{VU} file system
interface.

@sp 1
@need 1750
@noindent
@b{* Function} @code{printfmt}@fuindex printfmt
@*
@example
@group
int printfmt (int * errn, int fd, char * fmt, ...);
@end group
@group
@end group
@end example

Print formatted output on descriptor @code{fd}.


[See the man page for @code{printf(3)} for a description for format
 strings.]


Extensions:

@example
@group
     The formatting flag '&' means to read the padding character
     from the next unused argument.  ' ' is the default padding
     character.
@end group
@group
@end group
@end example

@strong{WARNING: The implementation of this function is incomplete.
Floating point values are not handled yet, for example.}


@strong{WARNING: Compilers do not type check the arguments to this
function, so it is easy to make mistakes.  A type-safe
interface for formatted printing is needed for a future
release.}




