|
|
1.1 ! root 1: .TH FSEEK 3F "18 July 1983" ! 2: .UC 4 ! 3: .SH NAME ! 4: fseek, ftell \- reposition a file on a logical unit ! 5: .SH SYNOPSIS ! 6: .B integer function fseek (lunit, offset, from) ! 7: .br ! 8: .B integer offset, from ! 9: .sp 1 ! 10: .B integer function ftell (lunit) ! 11: .SH DESCRIPTION ! 12: .I lunit ! 13: must refer to an open logical unit. ! 14: .I offset ! 15: is an offset in bytes relative to the position specified by ! 16: .I from. ! 17: Valid values for ! 18: .I from ! 19: are: ! 20: .sp 1 ! 21: .in +5 ! 22: 0 meaning 'beginning of the file' ! 23: .br ! 24: 1 meaning 'the current position' ! 25: .br ! 26: 2 meaning 'the end of the file' ! 27: .in -5 ! 28: .PP ! 29: The value returned by ! 30: .I fseek ! 31: will be 0 if successful, a system error code otherwise. ! 32: (See perror(3F)) ! 33: .PP ! 34: .I Ftell ! 35: returns the current position of the file associated with the specified ! 36: logical unit. The value is an offset, in bytes, from the beginning of the file. ! 37: If the value returned is negative, it indicates an error and will be ! 38: the negation of the system error code. (See perror(3F)) ! 39: .SH FILES ! 40: .ie \nM /usr/ucb/lib/libU77.a ! 41: .el /usr/lib/libU77.a ! 42: .SH "SEE ALSO" ! 43: fseek(3S), perror(3F)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.