Syntax

int PCMSCountryListItem (PCMServerID serv, const char* regionID, int index, char *buffer, int bufSize)


Parameters 

PCMServerID serv – The PC*MILER server ID.

const char *regionID – The selected region. (Regions outside of NA are only accessible with a PC*MILER|Worldwide license.)

int index – The index of the country for which information will be returned.

char *buffer – Reference buffer to store the country name and FIPs country code.

int bufSize – The number of bytes in the buffer.


Description

Populates a buffer with the name and FIPS country code for the country at the given index, delimited by tabs.


Return Values

Success – The number of bytes written to buffer.


Failure – Returns -1.


Sample Code 

int nCountries = PCMSCountryList(server, "NA");
for (int iCountry = 0; iCountry < nCountries; ++iCountry)
    {
        PCMSCountryListItem(server, "NA", iCountry, buf, BUFLEN);
        printf("  %d) %s", iCountry, buf);
    }


Supported Since: PC*MILER|Connect 20

Category: Administration