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

  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