There is no standard C function that does this, but your compiler almost certainly provides a function that does. If you're using a *nix variety, take a look at fstat or stat. These are Posix functions that are sometimes provided by Windows implementations as well.
Maybe somebody else knows of a Windows/DOS function that's commonly provided (if that's what you're interested in).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.