The Hackerlab at regexps.com

Formatted Printing With printfmt

up: libhackerlab
next: VU Utilities
prev: Virtual Null File Descriptors

The function printfmt provides the functionality of the standard function printf within the context of the VU file system interface.

Function printfmt

int printfmt (int * errn, int fd, char * fmt, ...);

Print formatted output on descriptor fd .

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

Extensions:

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

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

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.



libhackerlab: The Hackerlab C Library
The Hackerlab at regexps.com