FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
sys_mkdir.c
Go to the documentation of this file.
1
/* mkdir function */
2
3
#include "
fb.h
"
4
#ifdef HOST_MINGW
5
#include <direct.h>
6
#else
7
#include <sys/stat.h>
8
#endif
9
10
/*:::::*/
11
FBCALL
int
fb_MkDir
(
FBSTRING
*path )
12
{
13
int
res;
14
15
#ifdef HOST_MINGW
16
res = _mkdir( path->
data
);
17
#else
18
res = mkdir( path->
data
, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH );
19
#endif
20
21
/* del if temp */
22
fb_hStrDelTemp
( path );
23
24
return
res;
25
}
rtlib
sys_mkdir.c
Generated on Thu Jan 23 2014 19:40:14 for FreeBASIC by
1.8.4