CINXE.COM
localeconv
<html> <head> <title>localeconv</title> <META NAME="KEYWORDS" CONTENT="localeconv"> </head> <body BGCOLOR="#ffffff" LINK="#0000ff" VLINK="#0000ff" ALINK="#0000ff" TEXT="#000000"> <center> <h1><b>localeconv</b></h1></center> <PRE> <STRONG><A HREF="/man3/LOCALECONV">LOCALECONV(3)</A></STRONG> Linux Programmer's Manual <STRONG><A HREF="/man3/LOCALECONV">LOCALECONV(3)</A></STRONG> NAME localeconv - get numeric formatting information SYNOPSIS #include <locale.h> struct lconv *localeconv(void); DESCRIPTION The localeconv() function returns a pointer to a struct lconv for the current locale. This structure is shown in <STRONG><A HREF="/man7/locale">locale(7)</A></STRONG>, and contains all values associated with the locale categories LC_NUMERIC and LC_MONE- TARY. Programs may also use the functions <STRONG><A HREF="/man3/printf">printf(3)</A></STRONG> and <STRONG><A HREF="/man3/strfmon">strfmon(3)</A></STRONG>, which behave according to the actual locale in use. RETURN VALUE The localeconv() function returns a pointer to a filled in struct lconv. This structure may be (in glibc, is) statically allocated, and may be overwritten by subsequent calls. According to POSIX, the caller should not modify the contents of this structure. The localeconv() function always succeeds. ATTRIBUTES For an explanation of the terms used in this section, see at- <STRONG><A HREF="/man7/tributes">tributes(7)</A></STRONG>. +-------------+---------------+----------------------------------+ |Interface | Attribute | Value | +-------------+---------------+----------------------------------+ |localeconv() | Thread safety | MT-Unsafe race:localeconv locale | +-------------+---------------+----------------------------------+ CONFORMING TO C89, C99. BUGS The <STRONG><A HREF="/man3/printf">printf(3)</A></STRONG> family of functions may or may not honor the current lo- cale. SEE ALSO <STRONG><A HREF="/man1/locale">locale(1)</A></STRONG>, <STRONG><A HREF="/man1/localedef">localedef(1)</A></STRONG>, <STRONG><A HREF="/man3/isalpha">isalpha(3)</A></STRONG>, <STRONG><A HREF="/man3/nl_langinfo">nl_langinfo(3)</A></STRONG>, <STRONG><A HREF="/man3/setlocale">setlocale(3)</A></STRONG>, str- <STRONG><A HREF="/man3/coll">coll(3)</A></STRONG>, <STRONG><A HREF="/man3/strftime">strftime(3)</A></STRONG>, <STRONG><A HREF="/man7/locale">locale(7)</A></STRONG> COLOPHON This page is part of release 5.05 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. GNU 2015-03-02 <STRONG><A HREF="/man3/LOCALECONV">LOCALECONV(3)</A></STRONG></PRE> <center> <h6>Man Pages Copyright Respective Owners. Site Copyright (C) 1994 - 2025 <a href="http://www.he.net">Hurricane Electric</a>. All Rights Reserved.</h6></center> </body> </html>