Question: 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 fiFIFinland the output of the program might look like this:
decimalpoint
thousands sep
grouping
mondecimalpoint
monthousandssep
mongrouping
positivesign
negativesign
currencysymbol "EUR"
fracdigits
pcsprecedes
ncsprecedes
psepbyspace
nsepbyspace
psignposn
nsignposn
intcurrsymbol "EUR
intfracdigits
intpcsprecedes
int ncsprecedes
int psepbyspace
int nsepbyspace
int psignposn
int nsignposn
For readability, the characters in grouping and mongrouping should be displayed as decimal numbers.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
