Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program in C that obtains the name of a locale from the command line and then displays the values stored in the corresponding

Write a program in C that obtains the name of a locale from the command line and then displays the values stored in the corresponding lconv structure. For example, if the locale is "fi_FI"(Finland, the output of the program might look like this:
decimal_point =","
thousands sep =""
grouping =3
mon_decimal_point =","
mon_thousands_sep =""
mon_grouping =3
positive_sign =""
negative_sign ="-"
currency_symbol = "EUR"
frac_digits =2
p_cs_precedes =0
n_cs_precedes =0
p_sep_by_space =2
n_sep_by_space =2
p_sign_posn =1
n_sign_posn =1
int_curr_symbol = "EUR "
int_frac_digits =2
int_p_cs_precedes =0
int n_cs_precedes =0
int p_sep_by_space =2
int n_sep_by_space =2
int p_sign_posn =1
int n_sign_posn =1
For readability, the characters in grouping and mon_grouping should be displayed as decimal numbers.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And SQL For DB2

Authors: James Cooper

1st Edition

1583473572, 978-1583473573

More Books

Students also viewed these Databases questions