HP-UX Reference (11i v1 00/12) - 3 Library Functions A-M (vol 6)
__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man3/!!!intro.3c
________________________________________________________________
___ ___
f
fwprintf(3C) fwprintf(3C)
ERRORS
For the conditions under which fwprintf() and wprintf() will fail and may fail, refer to
fputwc(). In addition, all forms of fwprintf() may fail if:
[EILSEQ] A wide-character code that does not correspond to a valid character has been detected.
[EINVAL] There are insufficient arguments.
[ENOMEM] Insufficient storage space is available.
In addition, wprintf() may fail if:
[EILSEQ] stdout is byte-oriented.
fwprintf() may fail if:
[EILSEQ] The stream pointed to by stream is byte-oriented.
EXAMPLES
To print the language-independent date and time format, the following statement could be used:
wprintf(format, weekday, month, day, hour, min);
For American usage, format could be a pointer to the wide-character string:
L"%s, %s %d %d:%.2d"
producing the message:
Sunday, July 3, 10:02
whereas for German usage, format could be a pointer to the wide-character string:
L"%1$s, %3$d. %2$s, %4$d:%5$.2d"
producing the message:
Sonntag, 3. Juli, 10:02
AUTHOR
fwprintf(), wprintf(), swprintf() were developed by HP and MitsubishiElectric Corporation.
SEE ALSO
btowc(3C), fputwc(3C), fwscanf(3C), setlocale(3C), mbrtowc(3C), orientation(5).
HP-UX Release 11i: December 2000 − 4 − Section 3−−269
___
___