C++ Function Call

This is a discussion on C++ Function Call within the Linux Programming forums, part of the Platform Specific Boards category; Hey guys, is there a function call for pausing the program that is native to linux? In school, I used ...

  1. #1
    ThisNukes4u
    Guest

    C++ Function Call

    Hey guys, is there a function call for pausing the program that is native to linux? In school, I used to use

    delay(1000);

    which would delay the program for 1 second, but it doesn't seem to work under Linux. Any help is appreciated.

  2. #2
    Microsoft. Who? MethodMan's Avatar
    Join Date
    Mar 2002
    Posts
    1,198

    Re: C++ Function Call

    Try pause() or sleep().

    I believe the input is seconds, check the man pages.
    -MethodMan-

    Your Move:Life is a game, Play it; Life is a challenge, Meet it; Life is an opportunity, capture it.

    Homepage: http://www.freewebs.com/andy_moog/home.html

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 02:07 AM
  2. Seg Fault in Compare Function
    By tytelizgal in forum C Programming
    Replies: 1
    Last Post: 10-25-2008, 03:06 PM
  3. Troubleshooting Input Function
    By SiliconHobo in forum C Programming
    Replies: 14
    Last Post: 12-05-2007, 06:18 AM
  4. Replies: 28
    Last Post: 07-16-2006, 11:35 PM
  5. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM

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