f_getmaxoffset
tmpmax = f_getmaxoffset(1);
maxmagicoffset = f_getmaxoffset(0);
extern intmax_t f_getmaxoffset(int);