region_get_region()

Get the current region string.

Synopsis:

#include <bps/region.h>
 
BPS_API int region_get_region(char **region)

Since:

BlackBerry 10.0.0

Arguments:

region

Upon success, the current region.

Library:

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

Description:

The region_get_region() function extracts the region string without any processing (e.g., en_US, fr_FR, en_GR, zh_TW, zh_Hant_TW, etc.) that is set on the device. Upon success, the caller is responsible for freeing the returned buffer using bps_free().

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.