Returns the locale string for the specified locale.
#include <locale.h>
char *derivelocale (
const char *language,
const char *country,
char locale [MAX_LOCNAME_LEN]);
(IN) Points to a name for the locale’s language. See Remarks for a list of supported strings.
(IN) Points to a name for the country hosting the locale. See Remarks for a list of supported strings.
(OUT) Points to the name associated with the locale in the form ll-cc where ll is a two-character designation for the language and cc a two-character designation of the hosting country.
If successful, returns the name associated with the locale.
The name associated with a locale is implementation-defined. This function allows you to determine that name based on numerous common strings. These are listed here. Case is unimportant to matching.
The following language names can be passed for language argument:
The following country names can be passed as the country argument: