sbase/yes.c

26 lines
313 B
C

/* 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);
}