Iīve tried stat to get the file size of a certain file.
When i run debugger i can see the st_size field with the desired size, but i cant copy it to any other variable. iīve tried copying to int, unsigned long, etc, and the value always getīs corrupted.
Can this be done or is there a more simple way to get a filesize? (ansi C)