add support for seeking to the end of a file

This commit is contained in:
Axel Kohlmeyer
2021-10-05 15:44:58 -04:00
parent 741cf9c7d5
commit af070aa351
3 changed files with 16 additions and 3 deletions

View File

@ -263,7 +263,12 @@ namespace platform {
bigint ftell(FILE *fp);
/*! constant to seek to the end of the file */
constexpr bigint END_OF_FILE = -1;
/*! Set absolute file position
*
* If the absolute position is END_OF_FILE, then position at the end of the file.
*
* \param fp FILE pointer of the given file
* \param pos new position of the FILE pointer