Get the current region string.
#include <bps/region.h>
BPS_API int region_get_region(char **region)
BlackBerry 10.0.0
Upon success, the current region.
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().
BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.