elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elkscmd
/
busyelks
/
cmd
/
touch.c
File editor
#include <string.h> #include <sys/stat.h> #include <unistd.h> int touch_main (argc,argv) int argc; char **argv; { int i, ncreate = 0; struct stat sbuf; int fd,er; if ((argv[1][0] == '-') && (argv[1][1] == 'c')) ncreate = 1; for(i=ncreate+1;i<argc;i++) { if (argv[i][0] != '-') { if (stat(argv[i],&sbuf)) { if (!ncreate) er = close(creat(argv[i], 0666)); } else er = utime(argv[i],NULL); } } exit(0); }
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history