mirror of
git://git.suckless.org/sbase
synced 2024-12-23 15:34:38 +00:00
28 lines
468 B
C
28 lines
468 B
C
/* See LICENSE file for copyright and license details. */
|
|
#include <stdbool.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
#include "util.h"
|
|
|
|
int
|
|
main(int argc, char *argv[])
|
|
{
|
|
bool nflag = false;
|
|
char c;
|
|
|
|
while((c = getopt(argc, argv, "n")) != -1)
|
|
switch(c) {
|
|
case 'n':
|
|
nflag = true;
|
|
break;
|
|
default:
|
|
exit(EXIT_FAILURE);
|
|
}
|
|
for(; optind < argc; optind++)
|
|
putword(argv[optind]);
|
|
if(!nflag)
|
|
putchar('\n');
|
|
return EXIT_SUCCESS;
|
|
}
|