ftell
Returns the offset of the current byte relative to the beginning of a file.
Syntax
p = ftell(fid)
Input argument
fid - a file descriptor
Output argument
p - an integer value: position of the file pointer as the number of characters from the beginning of the file.
Description
ftell returns the offset of the current byte relative to the beginning of the file associated with the named stream fid.
Example
See also
fopen, fprintf, fclose, fseek.
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET
Last updated