a wrote:
struct stat* buf
buf->st_mode
Is there any marco can construct the type and permission string, like
drwx------, by passing the st_mode?
Note that there are no directories from the standard C point of view.
struct stat is not known to me, neither is st_mode, the code does not
compile, no source is provided: This cannot be answered.
Learn how to ask smart questions:
http://www.catb.org/~esr/faqs/smart-questions.html
Hint: If your answer solely depends on what st_mode can contain,
then you should state what it contains, otherwise mention all
additional conditions.
If there is not a very clear and obvious relationship between
the desired string and st_mode, I would rather use a function
than a macro.
Cheers
Michael
--
E-Mail: Mine is an /at/ gmx /dot/ de address.