C includes 2 methods for saving the position of a stream and setting it later. Using fseek() and ftell():
long pos = ftell(file);// ...fseek(file, pos, SEEK_SET);Or fgetpos() and fsetpos():
fpos_t pos;fgetpos(file, &pos);//fsetpos(file, &pos);What is the reason for defining them both, instead of just the former?