# PDL_GetRegionCountryCode

## Description

Sets the passed `buffer` variable to the device's 2-letter country/region code stored in the internal luna preferences database. The passed `buffer` should be allocated at least 3 bytes. The `bufferLen` parameter should be set to the length of the passed `buffer`.

## Syntax

>     PDL_Err PDL_GetRegionCountryCode(char *buffer, int bufferLen);

Argument | Description
--- | ---
buffer | Pointer to buffer.
bufferLen | Length of the buffer.

## Returns

>     PDL_INVALIDINPUT - buffer is null or zero length.
>     PDL_SYSTEMERROR_FILE - Unable to access database.
>     PDL_STRINGTOOSMALL - buffer is too small to hold value.
>     PDL_NOERROR - Success.