title: How do C functions like fscanf() and fgets() remember where in the file to start reading from?
body: <p>How do C functions like <code>fscanf()</code> and <code>fgets()</code> remember where in the file to start reading from? For instance, when reading a file using <code>fscanf()</code>, it seems to remember where it last left terminated, rather than starting from the beginning of the file again. How exactly does this work?</p>