Numeric Formatting Routines; Date And Time Routines - HP 9000 User Manual

Computers
Hide thumbs Also See for 9000:
Table of Contents

Advertisement

6
Numeric Formatting
The numeric formatting routines (for example, printf, and fprintf) have
been internationalized and give locale-sensitive results for wide character data.
Table 6-8. Numeric Formatting Routines
Routine
Description
wcstod
Converts a wide character string to a double, correctly
interpreting the radix character according to the currently
active value of the LC_NUMERIC category.
wcstol
Converts a wide character string to a long.
wcstoul
Converts a wide character string to an unsigned long.
Date and Time
The
ctime(3C)
date and time routines: ctime and asctime always give
C
locale
results. To get locale-sensitive results, use we sf time.
Table 6-9. Date and Time Routines
Routine
Description
wcsftime
Like ctime, but accepts an optional format string
(which should be placed in a message catalog).
nl_langinfoCD_T_FMT)
Returns a local time/date format string.
Note
See "Input and Output in Internationalized Programs" for a
better understanding of time/ date format strings and their use.
6-16 Developing International Software

Advertisement

Table of Contents
loading

Table of Contents