home *** CD-ROM | disk | FTP | other *** search
-
- #define NOCCARGC
- #include stdio.h
- #include clib.def
- extern int _fcbptr[], _chrpos[];
- /*
- ** Return offset to current 128-byte record
- */
- ctell(fd) int fd; {
- int *rrn;
- if(!_mode(fd) || isatty(fd)) return (-1);
- rrn=_fcbptr[fd]+RRNOFF;
- return (*rrn);
- }
- /*
- ** Return offset to next character in current buffer.
- */
- ctellc(fd) int fd; {
- return (_chrpos[fd]);
- }
-