NWstrmoney(3nw)


NWstrmoney -- gets locale-sensitive money format for numerical value

Synopsis

   #include <time.h> or #define NWL_EXCLUDE_TIME 
   #include <stdio.h> or #define NWL_EXCLUDE_FILE 
   #include <nwlocale.h> 
   

char NWFAR *NWAPI NWstrmoney (char NWFAR *buffer, NUMBER_TYPE Value);

Description

The parameters are as follows:

buffer
(OUT) Points to the number formatted for a specific country.

Value
(IN) Specifies the number to format.

Return values

Pointer to string.

Notices

NWstrmoney has no ANSI counterpart. NWstrmoney is different from NWstrImoney; it does not provide the country prefix in string.

The last 2 or 3 (some locales) digits of Value will always be formatted as the smallest money units for that locale. The type of this variable is long double.

Examples:

   locale     number      formatted value 
   US          1234         $12.34 
   FRANCE      1234         p12,34 

Services

Internationalization

NCP calls

None

References

NWLsetlocale(3nw), NWstrImoney(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.