How to remove directory from disk in C

1 Answer

0 votes
#include <stdio.h>
#include <unistd.h>
   
int main(int argc, char **argv) 
{ 
    char dir[32] = "d:\\test_dir";
    
    rmdir(dir);
        
    return 0;
}
   
/*
  
run:
   
directory: d:\test_dir removed

*/

 



answered Sep 29, 2015 by avibootz

Related questions

...