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"
|
|
|
|
|
|
|
|
int
|
|
|
|
main(int argc, char *argv[])
|
|
|
|
{
|
2015-03-02 13:19:26 +00:00
|
|
|
char **p;
|
2015-02-01 01:13:47 +00:00
|
|
|
|
2017-08-05 21:50:39 +00:00
|
|
|
argv0 = *argv, argv0 ? (argc--, argv++) : (void *)0;
|
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
|
|
|
}
|