home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
octa21fs.zip
/
octave
/
stdcpp
/
test
/
opentest.c
< prev
Wrap
C/C++ Source or Header
|
2000-01-15
|
259b
|
19 lines
#include <stdio.h>
#include <io.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
int main(void)
{
int h;
h = open ("test", O_WRONLY | O_CREAT | O_BINARY, 0644);
printf ("\n %i \n", h);
close (h);
return 0;
}