Alternatives to using stat() to get file type?

Posted by Helper Method on Stack Overflow See other posts from Stack Overflow or by Helper Method
Published on 2010-04-01T13:21:40Z Indexed on 2010/04/01 13:23 UTC
Read the original article Hit count: 202

Filed under:
|

Are there any alternatives to stat (which is found on most Unix systems) which can determine the file type? The manpage says that a call to stat is expensive, and I need to call it quite often in my app.

© Stack Overflow or respective owner

Related posts about c

    Related posts about system-calls