The fgetpos function stores the current value of the file position indicator for the stream pointed to by stream into the object pointed to by pos.