GeoipCode2 Function

Gets the two character country code from an IP address. (US, CA, etc)

bool GeoipCode2(const char[] ip, char ccode[3])

Parameters

const char[] ip

Ip to determine the country code.

char[3] ccode

Destination string buffer to store the code.

Return Value

True on success, false otherwise.