geoip_code2

Syntax

#pragma deprecated Use geoip_code2_ex() instead.
native geoip_code2(const ip[], ccode[3]);

Usage

ip
The IP address to lookup.
result
The result buffer.

Description

Lookup the two character country code for a given IP address. Sets the buffer to "error" on
an unsuccessful lookup.

Return

The result length.