mirror of
https://github.com/deater/dos33fsprogs.git
synced 2025-02-12 23:31:43 +00:00
asoft_sound: initial checkin of sound generator
This commit is contained in:
parent
51025d3e71
commit
1f3d1aace4
16
asoft_sound/Makefile
Normal file
16
asoft_sound/Makefile
Normal 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
15
asoft_sound/asoft_sound.c
Normal 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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user