/* Appending to file, trying to read from it. */
TESTCASE( ( fh = _PDCLIB_open( "testfile", _PDCLIB_FAPPEND ) ) != _PDCLIB_NOHANDLE );
TESTCASE( write( fh, "app", 3 ) == 3 );
TESTCASE( lseek( fh, 0, SEEK_SET ) == 0 );
TESTCASE( read( fh, buffer, 10 ) == -1 );
TESTCASE( write( fh, "end", 3 ) == 3 );
/* Appending to file, trying to read from it. */
TESTCASE( ( fh = _PDCLIB_open( "testfile", _PDCLIB_FAPPEND ) ) != _PDCLIB_NOHANDLE );
TESTCASE( write( fh, "app", 3 ) == 3 );
TESTCASE( lseek( fh, 0, SEEK_SET ) == 0 );
TESTCASE( read( fh, buffer, 10 ) == -1 );
TESTCASE( write( fh, "end", 3 ) == 3 );