I am not sure about the origin of this good practice but fgetpos(3) seems wrong. It has to be fsetpos(3) if I'm reading the C standard and POSIX[0] correctly. BTW, calling fsetpos(3) will require a call to fgetpos(3) first. So why is it being advised as a good practice to call two functions (`fgetpos` and then `fsetpos`)? Maybe just i) mention fseek(3) only OR ii) mention fseek(3) and fflush(3) (instead of fsetpos(3))? [0] https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/functions/fopen.html Thanks! Regards, Avinash Sonawane (rootKea) https://www.rootkea.me -- You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.