idx_win.c (386B)
1 #include "idx.h" 2 3 #ifdef IDX_WIN 4 5 int idxseek(FILE *stream, idx_t offset, int origin) 6 { 7 return _fseeki64(stream, (__int64)offset, origin); 8 } 9 10 idx_t idxtell(FILE *stream) 11 { 12 return (idx_t)_ftelli64(stream); 13 } 14 15 idx_t strtoidx(const char *s, char **end, int base) 16 { 17 return (idx_t)strtoi64(s, end, base); 18 } 19 20 int idxtostr(idx_t i, char **buf) 21 { 22 return sprintf(*buf, "%I64", i); 23 } 24 25 #endif