Last active
October 24, 2017 16:58
-
-
Save dstein64/0eff27ecc06fa1349e390b4459ffb841 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** echo.c ***/ | |
// Description | |
// echo - print arguments to stdout | |
// Synopsis | |
// echo [STRING]... | |
// Build | |
// $ gcc -o echo echo.c | |
#include <stdio.h> | |
int main(int argc, char* argv[]) { | |
for (int i = 1; i < argc; ++i) { | |
if (i > 1) printf(" "); | |
printf("%s", argv[i]); | |
} | |
printf("\n"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment