int ftell(FILE * file)
Returns the current position in the given file, or -1 if an error occurred.
Returns the current position in the given file stream. You can use this in conjunction with fseek to get the size of a file by first seeking to the end of the file, then retrieving the current position with ftell.