From c813f7bd522baf1057ba9bee874669ea5b945a66 Mon Sep 17 00:00:00 2001 From: "martin@ashbysoft.com" Date: Sat, 11 Jun 2022 20:02:48 +0000 Subject: more intro exercises --- echo.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 echo.c (limited to 'echo.c') diff --git a/echo.c b/echo.c new file mode 100644 index 0000000..bf590a5 --- /dev/null +++ b/echo.c @@ -0,0 +1,9 @@ +#include + +int main(void) { + int c; + while ((c = getchar()) != EOF) { + putchar(c); + } + return 0; +} \ No newline at end of file -- cgit v1.2.3-ZIG