posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
monetary.h File Reference

POSIX monetary formatting functions (<monetary.h>) More...

#include <locale.h>
#include <stddef.h>
#include <sys/types.h>
#include <zephyr/toolchain.h>
Include dependency graph for monetary.h:

Go to the source code of this file.

Functions

ssize_t strfmon (char *ZRESTRICT s, size_t maxsize, const char *ZRESTRICT format,...)
 Format a monetary value into a string according to the current locale.
 
ssize_t strfmon_l (char *ZRESTRICT s, size_t maxsize, locale_t locale, const char *ZRESTRICT format,...)
 Format a monetary value using the specified locale.
 

Detailed Description

POSIX monetary formatting functions (<monetary.h>)

Provides strfmon() and strfmon_l() for formatting monetary values according to the current or a specified locale.

See also
POSIX.1-2017 <monetary.h>

Definition in file monetary.h.