In wich library is sound() and delay() ?

This is a discussion on In wich library is sound() and delay() ? within the C Programming forums, part of the General Programming Boards category; I'm having a problem in Turbo C to use sound() and delay() functions. With stdio.h and conio.h loaded, i have ...

  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    2

    In wich library is sound() and delay() ?

    I'm having a problem in Turbo C to use sound() and delay() functions.
    With stdio.h and conio.h loaded, i have an "Functions 'sound' and 'delay' should have a prototype" error.
    What can i do to fix it ?
    Thanks.

  2. #2
    Just a pushpin. bernt's Avatar
    Join Date
    May 2009
    Posts
    426
    sound() and delay() are in "dos.h". As in, the MS-DOS API.
    Consider this post signed

  3. #3
    Registered User
    Join Date
    Dec 2010
    Posts
    2
    Quote Originally Posted by bernt View Post
    sound() and delay() are in "dos.h". As in, the MS-DOS API.
    Works fine. Thanks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. musical notes using sound()
    By lambs4 in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 02-09-2002, 08:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21