Function that returns the size of a file in bytes in C
Hello everybody!
Does anyone know if there is a function in C that returns the size of a file in bytes? Is this function included in stdlib? I want to write programs that read and write in files and if they are asked to write/read in a space outside the file range, that request should be rejected.
Thanks in advance.
|