In this tutorial we will see a simple beep function. Let's take an example of the beep function:
/*
** Made by BadproG.com
*/
#define SOUND_IT(x) (x-'@')
#include <stdio.h>
void beep(void)
{
putchar(SOUND_IT('G'));
fflush(stdout);
}
int main()
{
beep();
}
Just compile and each time you will execute it, you will hear a simple beep.
© Badprog - I want to change the world. And I will.
Add new comment