How do you get file size by fd?

Viewed 32545

I know I can get file size of FILE * by fseek, but what I have is just a INT fd.

How can I get file size in this case?

3 Answers
Related