home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
proglc
/
timersnd.lzh
/
TONE.C
< prev
next >
Wrap
Text File
|
1986-12-15
|
339b
|
19 lines
/*
* tone -- set the frequency of the sound generator
*/
#include <stdio.h>
main(argc, argv)
int argc;
char **argv;
{
extern void setfreq(unsigned int);
if (argc != 2) {
fprintf(stderr, "Usage: tone hertz\n");
exit(1);
}
/* set the frequency in Hertz */
setfreq(atoi(*++argv));
exit(0);
}