asoft_sound: initial checkin of sound generator

This commit is contained in:
Vince Weaver 2017-01-05 10:37:06 -05:00
parent 51025d3e71
commit 1f3d1aace4
2 changed files with 31 additions and 0 deletions

16
asoft_sound/Makefile Normal file
View File

@ -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

15
asoft_sound/asoft_sound.c Normal file
View File

@ -0,0 +1,15 @@
#include <stdio.h>
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;
}