querylocale()

Look up the locale name for a specified category 

Function


SYNOPSIS

#include <locale.h>

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


DESCRIPTION

querylocale() is the threaded equivalent of setlocale(NULL) which returns a text representation of the specified locale. However, unlike setlocale(), querylocale() can be asked to return only those categories in the mask.

The possible values for the mask are the same as those in newlocale().


RETURN VALUE

Returns the name of the locale for the category specified by mask. If more than one bit in the mask is set, each category string will be returned separated by a / (forward slash) in the same order they are returned from setlocale().


Standards Conformance

The function conforms to IEEE Std 1003.1-2008 'POSIX.1'


SEE ALSO

Functions:
duplocale(), localeconv(), newlocale(), querylocale(), uselocale(), xlocale()


PTC MKS Toolkit 10.5 Documentation Build 40.