From 1f3d1aace4e3f2d512604822957d799ad8354d9b Mon Sep 17 00:00:00 2001 From: Vince Weaver Date: Thu, 5 Jan 2017 10:37:06 -0500 Subject: [PATCH] asoft_sound: initial checkin of sound generator --- asoft_sound/Makefile | 16 ++++++++++++++++ asoft_sound/asoft_sound.c | 15 +++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 asoft_sound/Makefile create mode 100644 asoft_sound/asoft_sound.c diff --git a/asoft_sound/Makefile b/asoft_sound/Makefile new file mode 100644 index 00000000..9f741a0c --- /dev/null +++ b/asoft_sound/Makefile @@ -0,0 +1,16 @@ +include ../Makefile.inc + +all: asoft_sound + +asoft_sound: asoft_sound.o + $(CC) $(LFLAGS) -o asoft_sound asoft_sound.o + +asoft_sound.o: asoft_sound.c + $(CC) $(CFLAGS) -c asoft_sound.c + + +install: + cp asoft_sound $(INSTALL_LOC) + +clean: + rm -f *~ *.o asoft_sound diff --git a/asoft_sound/asoft_sound.c b/asoft_sound/asoft_sound.c new file mode 100644 index 00000000..c5b38997 --- /dev/null +++ b/asoft_sound/asoft_sound.c @@ -0,0 +1,15 @@ +#include + +int main(int argc, char **argv) { + + char string[BUFSIZ]; + char *result; + + while(1) { + result=fgets(string,BUFSIZ,stdin); + if (result==NULL) break; + printf("%s",result); + } + + return 0; +}