chrislim2888 / IP2Location-C-Library

IP2Location C library enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather station code, weather station name, mobile, usage types, etc that any IP address or hostname originates from.
https://www.ip2location.com
MIT License
61 stars 30 forks source link

Fix typo and add portability of fseek() #53

Closed wi24rd closed 2 years ago

wi24rd commented 2 years ago

From latest iso c draft n2596.pdf: int fseek(FILE *stream, long int offset, int whence); For whence, SEEK_SET macro is implemented as 0 in many OS, but just defined as "integer constant expressions with distinct values" in iso.