C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 07-10-2004, 09:33 AM   #1
Registered User
 
Join Date: Jul 2004
Posts: 9
Linux equivalent to CreateDirectory

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?
Rak'kar is offline   Reply With Quote
Old 07-10-2004, 12:04 PM   #2
Obsessed with C
 
chrismiceli's Avatar
 
Join Date: Jan 2003
Posts: 501
mkdir(), just like the linux command
http://www.rt.com/man/mkdir.2.html
__________________
Help populate a c/c++ help irc channel
server: irc://irc.efnet.net
channel: #c
chrismiceli is offline   Reply With Quote
Old 07-10-2004, 12:04 PM   #3
End Of Line
 
Hammer's Avatar
 
Join Date: Apr 2002
Posts: 6,240
FAQ
__________________
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
Hammer is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Equivalent to volume serial number in linux Elkvis Linux Programming 8 06-30-2009 08:46 PM
ReadProcessMemory/WriteProcessMemory Linux equivalent? MrLucky C++ Programming 7 07-27-2007 09:36 AM
Linux equivalent to Win32 ShellExecute BobS0327 Linux Programming 4 06-07-2006 04:35 AM
Linux equivalent of con dwks Linux Programming 3 11-12-2005 11:58 AM
.bat equivalent for linux ichijoji Linux Programming 8 03-07-2004 08:06 AM


All times are GMT -6. The time now is 05:40 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22