Thread: sleep() or delay() headers?

  1. #1
    Registered User Gnoober's Avatar
    Join Date
    Oct 2002
    Posts
    40

    sleep() or delay() headers?

    Does anyone know what header the sleep() or delay() functions are in?

    EDIT 1: "in" added (;
    - Grady (:

  2. #2
    Registered User
    Join Date
    Oct 2002
    Posts
    46
    don't know if this helps but i just did a man 3 on sleep & it's in the #include <unistd.h> header. But that's a unix lib so...

  3. #3
    Banal internet user
    Join Date
    Aug 2002
    Posts
    1,380
    _sleep(milliseconds) is defined in <stdlib.h>

    Sleep(milliseconds) is defined in <windows.h>

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. temperature sensors
    By danko in forum C Programming
    Replies: 22
    Last Post: 07-10-2007, 07:26 PM
  2. making my program sleep / wait / delay...
    By bobthebullet990 in forum C++ Programming
    Replies: 4
    Last Post: 08-13-2006, 10:14 AM
  3. Create a delay without using Sleep
    By Bag a Bones in forum C++ Programming
    Replies: 12
    Last Post: 01-25-2006, 10:35 PM
  4. delay or sleep?
    By GanglyLamb in forum C Programming
    Replies: 17
    Last Post: 12-12-2002, 11:46 PM
  5. program delay (sleep)
    By rxg00u in forum C++ Programming
    Replies: 5
    Last Post: 04-16-2002, 12:54 PM