Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Xcode mkdir error?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Nethfel" data-source="post: 1300164" data-attributes="member: 89124"><p>How exactly are you attempting to use mkdir?</p><p></p><p>Standard C for a function is not:</p><p></p><p>mkdir "The File";</p><p></p><p>as that line would never work. Plus, mkdir function takes two parameters, the path for the folder and the mode for the folder - not a single parameter.</p><p></p><p>I tested it with:</p><p></p><p>[code]</p><p>#include <stdio.h></p><p>#include <sys/stat.h></p><p></p><p>int main (int argc, const char * argv[])</p><p>{</p><p></p><p> mkdir("MyFolder", S_IRWXU);</p><p> return 0;</p><p>}</p><p>[/code]</p><p>and it worked flawlessly using XCode.</p></blockquote><p></p>
[QUOTE="Nethfel, post: 1300164, member: 89124"] How exactly are you attempting to use mkdir? Standard C for a function is not: mkdir "The File"; as that line would never work. Plus, mkdir function takes two parameters, the path for the folder and the mode for the folder - not a single parameter. I tested it with: [code] #include <stdio.h> #include <sys/stat.h> int main (int argc, const char * argv[]) { mkdir("MyFolder", S_IRWXU); return 0; } [/code] and it worked flawlessly using XCode. [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Xcode mkdir error?
Top