Im new to system programming in c..can someone tell me an example of what arguments this program expecting in the terminal?
#include <fcntl.h>
#include <stdlib.h>
#define PERMS 6666
int main(int argc,char* argv[] )
{
int n = 10;
int fd = open(argv[1],O_CREAT | O_WRONLY | O_RDONLY, PERMS );
int w = write(fd,&n,sizeof(int) );
close(fd);
}