Which of the following macro returns true if the file type is a directory?
(a) S_ISREG
(b) S_ISDIR
(c) S_ISCHR
(d) S_ISFIFO
This question was addressed to me during an interview.
The origin of the question is File Handling System Calls topic in chapter System Programming I – Files of Unix