PDA

View Full Version : Linux equivalent to CreateDirectory



Rak'kar
07-10-2004, 09:33 AM
I was trying to use fopen with wb to create a file and also create the path to that file if the path doesn't exist. It didn't work (under windows) so I made a function that calls CreateDirectory to create the path first, and then fopen the file.

What is the Linux equivalent to CreateDirectory?

chrismiceli
07-10-2004, 12:04 PM
mkdir(), just like the linux command
http://www.rt.com/man/mkdir.2.html

Hammer
07-10-2004, 12:04 PM
FAQ (http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1047077601&id=1045780608#04)