Monetary formatting subroutines

Programs that must specify or access monetary quantities can call the strfmon subroutine.

Although the C programming language standard with POSIX provides a means of specifying and accessing monetary information, these standards do not define a subroutine that formats monetary quantities. TheXPG4 strfmon subroutine provides the facilities to format monetary quantities. No defined subroutine converts a formatted monetary string into a numeric quantity suitable for arithmetic. Applications that must do arithmetic on monetary quantities can do so after they process the locale-dependent monetary string into a number. The culture-specific monetary formatting information is specified by the LC_MONETARY category. An application can obtain information that pertains to the monetary format and the currency symbol by calling the localeconv subroutine.

Note: The @euro and @preeuro modifiers are not required for POSIX locales.