Skip to content

Commit

Permalink
add echo
Browse files Browse the repository at this point in the history
  • Loading branch information
stark committed Feb 26, 2018
1 parent ec6cc23 commit cd4d596
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions echo.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <stdio.h>

int
main(int argc, char **argv) {

for(int i = 1; i < argc; i++) {
printf("%s", argv[i]);
putchar(i == argc - 1 ? '\n' : ' ');
}

return 0;
}
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LDFLAGS = -static
CFLAGS = -g

all: logname env
all: logname env echo

0 comments on commit cd4d596

Please sign in to comment.