main.c
void beep_on_line(beep_args_t *args, int consolefd) {
  
  while (1) {

    char c = getchar();

    if (feof(stdin))
      break;

    putchar(c);
    fflush(stdout);

    if (c == '\n') {
      beep(args->duration_ms, args->freq_hz, consolefd);
      usleep(args->delay_ms*1000);
    }
  }
}
// Beep for every line on stdin
Beep for every line on stdin
Beep for every line on stdin
void beep_on_line(beep_args_t *args, int consolefd) {
  while (1) {
    char c = getchar();
    if (feof(stdin))
      break;
    putchar(c);
    fflush(stdout);
    if (c == '\n') {
      beep(args->duration_ms, args->freq_hz, consolefd);
      usleep(args->delay_ms*1000);
    }
  }
}
void beep_on_line ( beep_args_t * args , int consolefd ) { while ( 1 ) { char c = getchar ( ) ; if ( feof ( stdin ) ) break ; putchar ( c ) ; fflush ( stdout ) ; if ( c == ' \n ' ) { beep ( args -> duration_ms , args -> freq_hz , consolefd ) ; usleep ( args -> delay_ms * 1000 ) ; } } }
Beep for every line on stdin
Beep for every line on stdin