simplify
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#include <stdio.h> /* NULL, fprintf(3), putc(3) */
|
||||
#include <stdlib.h> /* stdout */
|
||||
#include <sysexits.h> /* EX_OK */
|
||||
|
||||
int main(int argc, char **argv){
|
||||
|
||||
if(*argv == NULL || *++argv == NULL)
|
||||
argc = 1;
|
||||
|
||||
while(--argc){
|
||||
fprintf(stdout, "%s", *(argv++));
|
||||
if(argc > 1)
|
||||
putc(' ', stdout);
|
||||
}
|
||||
|
||||
return EX_OK;
|
||||
}
|
||||
Reference in New Issue
Block a user