STRFMON(3)

NAME
strfmon - convert monetary value to string

LIBRARY
libc

SYNOPSIS
#include <monetary.h>
ssize_t
strfmon(char *s, size_t maxsize, const char *format, ...);

DESCRIPTION
The strfmon() function places characters into the array pointed to by s as controlled by the string pointed to by format. No more than maxsize bytes are placed into the array.

RETURN VALUES
If the total number of resulting bytes including the terminating NULL byte is not more than maxsize, strfmon() returns the number of bytes placed into the array pointed to by s, not including the terminating NULL byte. Otherwise, -1 is returned, the contents of the array are indeterminate, and errno is set to indicate the error.

ERRORS
The strfmon() function will fail if:

[E2BIG]
    Conversion stopped due to lack of space in the buffer.

SEE ALSO
localeconv(3)

STANDARDS
The strfmon() function conforms to xpg4 and susv2.

AUTHORS
-nosplit The strfmon() function was implemented by Alexey Zelkin <phantom@FreeBSD.org>.

This manual page was written by Jeroen Ruigrok van der Werven <asmodai@FreeBSD.org> based on the standards' text.