2012-04-23 14:27:40 +00:00
|
|
|
/* See LICENSE file for copyright and license details. */
|
|
|
|
#include <stdio.h>
|
2014-11-13 17:29:30 +00:00
|
|
|
|
2012-04-23 14:27:40 +00:00
|
|
|
#include "util.h"
|
|
|
|
|
2019-06-28 07:18:48 +00:00
|
|
|
static void
|
|
|
|
usage(void)
|
|
|
|
{
|
|
|
|
eprintf("usage: %s [string ...]\n", argv0);
|
|
|
|
}
|
|
|
|
|
2012-04-23 14:27:40 +00:00
|
|
|
int
|
|
|
|
main(int argc, char *argv[])
|
|
|
|
{
|
2015-03-02 13:19:26 +00:00
|
|
|
char **p;
|
2015-02-01 01:13:47 +00:00
|
|
|
|
2019-06-28 07:18:48 +00:00
|
|
|
ARGBEGIN {
|
|
|
|
default:
|
|
|
|
usage();
|
|
|
|
} ARGEND
|
2012-04-23 14:27:40 +00:00
|
|
|
|
2015-03-02 13:19:26 +00:00
|
|
|
for (p = argv; ; p = (*p && *(p + 1)) ? p + 1 : argv) {
|
|
|
|
fputs(*p ? *p : "y", stdout);
|
|
|
|
putchar((!*p || !*(p + 1)) ? '\n' : ' ');
|
2015-02-01 01:13:47 +00:00
|
|
|
}
|
2015-02-28 20:11:10 +00:00
|
|
|
|
|
|
|
return 1; /* not reached */
|
2012-04-23 14:27:40 +00:00
|
|
|
}
|