linux下用open函数打开并创建一个文件出现错误。菜鸟求解
我运行的情况是too few arguments to function ‘open’
代码是
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
int main()
{
int fd;
fd=open("./hello.c,O_CREAT|O_RDWR|O_EXCL,S_IRWXU");
return 0 ;
}