I'm writing a program in C to get the computers internal speaker to transmit a morse code message.
I have no problem transmitting a dot, I use the \a command inside of printf, but I can't repersent a dash, (three times the length of a dot). I've tried using \a three times in a row but it doesn't sound right so I was wondering does anybody know how I might achieve this.

Also is there a command to stop a program operating for a length of time (such a sleep command or something) to put the spaces in the message?

Thanks in advance,
Garathjax