Getting the Current Position of a File Pointer
Function Syntax
MPI_File_get_position(MPI_File fh, MPI_Offset *offset)
PMPI_File_get_position(MPI_File fh, MPI_Offset *offset)
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
fh |
File (handle) |
Non-empty |
Input |
*offset |
Destination address for storing the offset |
Non-empty |
Output |
Return Value
- Success: MPI_SUCCESS
- Failure: An error code is returned.
Error Code
Error Code |
Description |
|---|---|
MPI_ERR_FILE |
Invalid file handle |
Parent topic: Information Setting and Access