__note

Reports the last read/written block position.

int __note (int handle);

Required Header
<io.h>

Return Value

This function returns the TTRz if the operation was successful. -1 indicates an error.

Parameters

handle

  The low level I/O handle to the open file

Remarks

The __note function returns the TTRz of the last read or written block, and may be used to create directory entry data for Load-Library members. Care must be taken when executing this function to make sure that the buffer routines have commited a written block. This happens when a type U file has been supplied all the data specified by the two-byte short integer length included in the data stream.

Use _fileno to get the low-level handle of a stream.

Not all file types allow taking NOTE.

Low Level I/O

See Also    __bldl, __setstow