FreeBASIC  0.91.0
sys_rmdir.c
Go to the documentation of this file.
1 /* rmdir function */
2 
3 #include "fb.h"
4 #ifdef HOST_MINGW
5 #include <direct.h>
6 #else
7 #include <unistd.h>
8 #endif
9 
10 /*:::::*/
11 FBCALL int fb_RmDir( FBSTRING *path )
12 {
13  int res;
14 
15 #ifdef HOST_MINGW
16  res = _rmdir( path->data );
17 #else
18  res = rmdir( path->data );
19 #endif
20 
21  /* del if temp */
22  fb_hStrDelTemp( path );
23 
24  return res;
25 }