use struct timeval to obtain the cputime. disable display atm until the code is corre...
[AROS.git] / compiler / stdc / localeconv.c
blobaef998de69b10f17fda2dced30d431da9c711ebb
1 /*
2 Copyright © 2006-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 function localeconv().
6 */
8 #include <locale.h>
9 #include <limits.h>
11 static const struct lconv _lconv =
13 ".", /* decimal_point */
14 "", /* thousands_sep */
15 "", /* grouping */
16 "", /* mon_decimal_point */
17 "", /* mon_thousand_sep */
18 "", /* mon_grouping */
19 "", /* positive_sign */
20 "", /* negative_sign */
21 "", /* currency_symbol */
22 CHAR_MAX, /* frac_digits */
23 CHAR_MAX, /* p_cs_precedes */
24 CHAR_MAX, /* n_cs_precedes */
25 CHAR_MAX, /* p_sep_by_space */
26 CHAR_MAX, /* n_sep_by_space */
27 CHAR_MAX, /* p_sign_posn */
28 CHAR_MAX, /* n_sign_pasn */
29 "", /* int_curr_symbol */
30 CHAR_MAX, /* int_frac_digits */
31 CHAR_MAX, /* int_p_cs_precedes */
32 CHAR_MAX, /* int_n_cs_precedes */
33 CHAR_MAX, /* int_p_sep_by_space */
34 CHAR_MAX, /* int_n_sep_by_space */
35 CHAR_MAX, /* int_p_sign_posn */
36 CHAR_MAX /* int_n_sign_posn */
39 /*****************************************************************************
41 NAME */
42 #include <string.h>
44 struct lconv *localeconv (
46 /* SYNOPSIS */
47 void)
49 /* FUNCTION
50 The localeconv function sets the components of an object with type
51 struct lconv with values appropriate for the formatting of numeric
52 quantities (monetary and otherwise) according to the rules of the
53 current locale.
55 INPUTS
58 RESULT
59 The lconv struct
61 NOTES
62 stdc.library only support "C" locale so always the same data
63 is returned.
65 EXAMPLE
67 BUGS
69 SEE ALSO
70 locale.h
72 INTERNALS
74 ******************************************************************************/
76 return (struct lconv *)&_lconv;