blob: d600ffcdbf1d58b6a1ba3a00d53042f87f9a6ff0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include <stdlib.h>
#include <stdio.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
if (argc > 1) {
int file_descriptor = open(argv[1], O_RDWR);
close(file_descriptor);
}
return 0;
}
|