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
/
sh_utils
/
yes.c
File editor
/* yes 1.4 - print 'y' or argv[1] continuously. Author: Kees J. Bot * 15 Apr 1989 */ #include <sys/types.h> #include <stdlib.h> #include <string.h> #include <unistd.h> int main(int argc, char **argv) { char *yes; int n; static char y[] = "y"; yes = argc == 1 ? y : argv[1]; n = strlen(yes); yes[n++] = '\n'; while (write(1, yes, n) != -1) /* Do nothing */; exit(1); }
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