[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: C question



Quoting richard (richard@spoiler.demon.co.uk):
> I've got a perl script that checks the permissions and creates directories. Now I want to rewrite
> the script in C. I know nothing about checking permissions nor creating directories with C. I 
> don't even know if it's possible, so if someone does know how to do this or a place that might
> describe the proceedure I would appreciate the assistance.

man 2 foo is your friend. If Perl can do it, then so can C. After all,
in this area Perl is no more than a wrapper to the underlying C functions,
though you will have to be more careful with the precise types of the
arguments, which is where languages like perl and python make it so easy.

Cheers,

-- 
Email:  d.wright@open.ac.uk   Tel: +44 1908 653 739  Fax: +44 1908 655 151
Snail:  David Wright, Earth Science Dept., Milton Keynes, England, MK7 6AA
Disclaimer:   These addresses are only for reaching me, and do not signify
official stationery. Views expressed here are either my own or plagiarised.


Reply to: