Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
QUERYLOCALE(3)		     Library Functions Manual		  QUERYLOCALE(3)

NAME
     querylocale -- Look up the locale name or version for a specified category

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <locale.h>

     const char *
     querylocale(int mask, locale_t locale);

DESCRIPTION
     Returns  the  name  or  version of the locale for the category specified by
     mask.  The possible values for the mask are the same  as  those  in  newlo-
     cale(3),  when  requesting  the  locale  name.   Specify  the bitwise OR of
     LC_VERSION_MASK and another mask value to request a version  string.   Ver-
     sion  strings can be compared to detect changes to the locale's definition.
     The structure of the version string is unspecified.  Currently, version in-
     formation is only available for LC_COLLATE_MASK, and an empty string is re-
     turned for other categories.  If more than one bit in the mask is set,  not
     counting LC_VERSION_MASK, the returned value is undefined.

SEE ALSO
     duplocale(3),  freelocale(3),  localeconv(3),  newlocale(3),  uselocale(3),
     xlocale(3)

HISTORY
     The querylocale() function first appeared in FreeBSD 9.1, and is  based  on
     the function of the same name in Darwin.  LC_VERSION_MASK first appeared in
     FreeBSD 13.0.

FreeBSD ports 15.quarterly	November 8, 2020		  QUERYLOCALE(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=querylocale&sektion=3&manpath=FreeBSD+15.1-RELEASE+and+Ports.quarterly>

home | help