--TEST-- Test fseek(), ftell() & rewind() functions : usage variations - all r & a modes, default whence --FILE-- --EXPECTF-- *** Testing fseek(), ftell(), rewind() : default whence & all r and a modes *** -- File having data of type text_with_new_line -- -- File opened in mode r -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode rb -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode rt -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode r+ -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode r+b -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode r+t -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode a -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode ab -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode at -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode a+ -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode a+b -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode a+t -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File having data of type alphanumeric -- -- File opened in mode r -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode rb -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode rt -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode r+ -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode r+b -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode r+t -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode a -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode ab -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode at -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode a+ -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode a+b -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) -- File opened in mode a+t -- -- Testing fseek() without using argument whence -- int(-1) int(0) bool(false) int(0) int(0) bool(false) int(0) int(1) bool(false) int(0) int(513) bool(false) int(512) Done