6 unit_chk (integer Unit
, char *who
)
8 if (Unit
>= MXUNIT
|| Unit
< 0)
10 return f__units
[Unit
].ufd
;
14 G77_ftell_0 (integer
* Unit
)
17 return (f
= unit_chk (*Unit
, "ftell")) ? (integer
) FTELL (f
) : -1L;
21 G77_fseek_0 (integer
* Unit
, integer
* offset
, integer
* xwhence
)
24 int w
= (int) *xwhence
;
26 static int wohin
[3] = { SEEK_SET
, SEEK_CUR
, SEEK_END
};
33 return !(f
= unit_chk (*Unit
, "fseek"))
34 || FSEEK (f
, (off_t
) * offset
, w
) ? 1 : 0;