home *** CD-ROM | disk | FTP | other *** search
- include compiler.inc
-
- ttl ftell, 1.05, 10-21-86, jwk
-
- dseg
- cseg
-
- xtfs <lseek, $strhand>
-
- ; long ftell(stream) FILE *stream;
- ; { return lseek(hdl(stream),0L,1);
- ; }
-
- procdef ftell, <<stream,ptr>>
- callit $strhand, <<stream,ptr>>
- xor bx,bx
- mov cx,1
- callit lseek, <<cx, reg>, <bx, reg>, <bx, reg>, <ax, reg>>
- pret
- pend ftell
-
- finish
-