independ echo

This commit is contained in:
2022-09-16 10:56:10 -04:00
parent 980b4bae35
commit bf073593c8
4 changed files with 35 additions and 5 deletions
-19
View File
@@ -1,19 +0,0 @@
#include <sysexits.h>
#include <stddef.h> /* NULL */
#include <unistd.h> /* write(2) */
#include "libio.h" /* fdprint(3) */
int main(int argc, char **argv){
if(*argv == NULL)
return EX_OSERR;
while(*++argv != NULL){
fdprint(1, *argv);
if(*(argv+1) != NULL)
write(1, " ", 1);
}
write(1, "\n", 1);
return EX_OK;
}