C Copyright (c) 1980 The Regents of the University of California.
C This module is believed to contain source code proprietary to AT&T.
C Use and redistribution is subject to the Berkeley Software License
C Agreement and your Software Agreement with AT&T (Western Electric).
C @(#)seektst.f 5.2 (Berkeley) 4/12/91
character*20 word1, word2
open(1, file="/usr/dict/words")
iseek1 = fseek(1, iend/2, 0)
iseek2 = fseek(1, iword, 0)
write(*,*) ibeg, iword, ftell(1), iend
write(*,*) word1(:lnblnk(word1)), word2(:lnblnk(word2))
write(*,*) "seek status", iseek1, iseek2, fseek(1, -1, 0)