#include <stdio.h> |
#include <conio.h> |
#include <process.h> |
#include <dir.h> |
int main( void ) |
{ |
int status; |
clrscr(); |
status = mkdir( "asdfjklm" ); |
(!status) ? ( printf ( "Directory created\n" )) : |
( printf ( "Unable to create directory\n" )); |
getch(); |
system ( "dir" ); |
getch(); |
status = rmdir( "asdfjklm" ); |
(!status) ? ( printf ( "Directory deleted\n" )) : |
( perror ( "Unable to delete directory" )); |
return 0; |
} |