Benden Ziyade <be*******@gmail.com> wrote:
I want to write a C program that check file ownership in /bin
directory(ls, mkdir...). But I don't know how I start. I'm happy with
your helping.
Sorry, but there isn't any function to determine the "ownerships" of
file in C (and also no function to list directories etc.), so you
need some system-specific extensions. Since what you write looks a
bit like you're using some UNIX-like system comp.unix.programmer
would probably be the right group to ask (and where you might get told
to use the stat(2) function).
Regards, Jens
--
\ Jens Thoms Toerring ___
Je***********@physik.fu-berlin.de
\__________________________
http://www.toerring.de