I want to display and then change file permission of a file whose name is available to me but i dont know that whether i have to use chmod or not!
Ne help?
I want to display and then change file permission of a file whose name is available to me but i dont know that whether i have to use chmod or not!
Ne help?
But i want to do that all in a c program and using gcc!
Code version:Originally posted by Lord CyKill
But i want to do that all in a c program and using gcc!
http://www.rt.com/man/chmod.2.html
http://www.rt.com/man/stat.2.html
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
a lot of UNIX commands are also functions in C.