geoip_code3
Syntax
native geoip_code3(const ip[], result[4]);
Usage
| Parameter | Description |
|---|---|
| ip | The IP address to lookup. |
| result | The result buffer. |
Description
Lookup the three character country code for a given IP address. Sets the buffer to "error" on an unsuccessful lookup.
This function has been deprecated, do NOT use it
Reason: This native will overflow the buffer by one cell on an unknown ip lookup! Use geoip_code3_ex instead.
Return
The result length.