NWstrnum(3nw)
NWstrnum --
formats number for specific country and returns number in string
Synopsis
#include <time.h> or #define NWL_EXCLUDE_TIME
#include <stdio.h> or #define NWL_EXCLUDE_FILE
#include <nwlocale.h>
char NWFAR
NWAPI NWstrnum
(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 (long).
Return values
Pointer to string.
Notices
If country code 033 (France) were used and 3498 were passed in Value,
NWStrnum would return 3.498.
Examples:
locale
|
number
|
formatted value
|
US
|
1234
|
1,234
|
FRANCE
|
1234
|
1.234
|
Services
Internationalization
NCP calls
None
References
NWLsetlocale(3nw)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.