suckless unix tools
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
sbase/yes.c

25 lines
313 B

/* See LICENSE file for copyright and license details. */
#include <stdio.h>
#include "util.h"
static void
usage(void)
{
eprintf("usage: %s [string]\n", argv0);
}
int
main(int argc, char *argv[])
{
const char *s;
ARGBEGIN {
default:
usage();
} ARGEND
s = argc ? argv[0] : "y";
for (;;)
puts(s);
}