How to create folder (directory) on disk in C

2 Answers

0 votes
#include <stdio.h>
#include <unistd.h>
   
int main(int argc, char **argv) 
{ 
    mkdir("test_dir");
        
    return 0;
}
   
/*
  
run:
   
d:\c_examples\Debug\test_dir\

*/

 



answered Sep 28, 2015 by avibootz
0 votes
#include <stdio.h>
#include <unistd.h>
   
int main(int argc, char **argv) 
{ 
    mkdir("d:\\test_dir");
        
    return 0;
}
   
/*
  
run:
   
d:\test_dir\

*/

 



answered Sep 28, 2015 by avibootz

Related questions

3 answers 442 views
1 answer 198 views
198 views asked Jul 2, 2020 by avibootz
1 answer 198 views
198 views asked Sep 29, 2015 by avibootz
1 answer 188 views
2 answers 335 views
1 answer 228 views
1 answer 241 views
241 views asked Aug 2, 2018 by avibootz
...