c88d6dcb4f
Adds useful descriptions to ones that were lacking them, updates ones that were innacurate, etc.
21 lines
310 B
C
21 lines
310 B
C
/*
|
|
* touch
|
|
*
|
|
* Creates a file or updates its last-modified date.
|
|
* (in theory)
|
|
*/
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
int main(int argc, char * argv[]) {
|
|
if (argc < 2) {
|
|
fprintf(stderr, "%s: argument expected\n", argv[0]);
|
|
return 1;
|
|
}
|
|
|
|
FILE * f = fopen(argv[1], "w");
|
|
fclose(f);
|
|
|
|
return 0;
|
|
}
|