I want to read last n bytes of proc file /proc//status.
On regular files, I can fseek from the end of the file like:
fseek(proc_file, -BUF_SIZE, SEEK_END);
but since the proc file has zero size, this doesn't work.
Any suggestions on how to read from the end ?
I would definite want to avoid looping till the end.