blob: c9236e2db7d9679a36e9a0c7099f48314c68d44a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include "include.h"
#include <fcntl.h>
int touch_main(int argc, char **argv) {
if (argc < 2) {
return 1;
}
int fd;
COND_PERROR_EXP(open(argv[1], O_CREAT, 0), "open", return 1)
close(fd);
return 0;
}
|