Home:ALL Converter>What does fseek do?

What does fseek do?

Ask Time:2021-02-11T23:46:31         Author:No_Name

Json Formatter

I'm new to C and am using fseek. My question is, what exactly does it do?

eg: fseek(FILE *stream, -1, SEEK_CUR) will read 1 character backwards, so is it already at the end of the file?

Does that mean fseek(FILE *stream, 0, SEEK_CUR) does nothing?

And how do we apply the functions after fseek to a data structure?

Author:No_Name,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/66158015/what-does-fseek-do
yy