Datasheet
The C and C++ Libraries
ARM DUI 0067D Copyright © 1999-2001 ARM Limited. All rights reserved. 4-39
strftime(timestr, sizeof(timestr), "%c", &tm);
EQS(timestr, "jeudi, 12 fevrier 1998, 23:13:13");
EQI(!setlocale(LC_TIME, "C"), 0); /* setlocale should work */
EQS(setlocale(LC_TIME, NULL), "C");
strftime(timestr, sizeof(timestr), "%c", &tm);
EQS(timestr, "12 Feb 1998 23:13:13");
}
The offset fields are interpreted similarly to
__lc_monetary_blk
.
4.6.9 _get_lconv()
_get_lconv()
sets the components of an
lconv
structure with values appropriate for the
formatting of numeric quantities.
Syntax
void _get_lconv(struct lconv* lc)
Implementation
This extension to ANSI does not use any static data. If youare building an application
that must conform strictly to the ANSI C standard, use
localeconv()
instead.
Returns
The existing
lconv
structure
lc
is filled with formatting data.