locale_get()

Get the current locale language and country.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

language

The current locale language.

country

The current locale country.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

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.

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus