locale_get()

Get the current locale language and country.

Synopsis:

#include <bps/locale.h>
 
BPS_API int locale_get(char **language, char **country)

Arguments:

language
The current locale language.
country
The current locale country.

Library:

libbps

Description:

The locale_get() function gets the current locale language and country that is set on the device. Upon success, the caller is responsible for freeing all buffers that are returned using bps_free() .

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.