Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ localeconv(3C) — CX/UX 6.20

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

atof(3C)

gcvt(3C)

setlocale(3C)

strtod(3C)

lconv(4)

chrtbl(1M)

montbl(1M)

localeconv(3C)

NAME

localeconv − numeric formatting convention inquiry

SYNOPSIS

#include <locale.h>

struct lconv ∗localeconv ()

DESCRIPTION

The localeconv function returns a pointer to an object with type struct lconv which contains values appropriate for the formatting of numeric quantities (monetary and otherwise) according to the rules of the current locale.  The components of the structure and the valid values for each component are described in lconv(4). 

The structure pointed to by the return value may not be modified by the program, but may be overwritten by a subsequent call to the localeconv function or the setlocale(3C) function with categories LC_ALL, LC_MONETARY, or LC_NUMERIC.  The contents of the structure for which a pointer has been obtained by the localeconv function are undefined between a subsequent call to the setlocale function and another localeconv invocation. 

FILES

/usr/lib/locale/locale/LC_NUMERIC
data file that contains the numeric formatting information for locale

/usr/lib/locale/locale/LC_MONETARY
data file that contains the monetary formatting information for locale

SEE ALSO

atof(3C), gcvt(3C), setlocale(3C), strtod(3C), lconv(4). 
chrtbl(1M), montbl(1M) in the CX/UX Administrator’s Reference Manual.

CX/UX Programmer’s Reference Manual

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026