Unix equivalent to Windows PAUSE?

Discussion in 'Mac Programming' started by mac2x, Nov 26, 2010.

  1. macrumors 65816

    Joined:
    Sep 19, 2009
    #1
    Hi,

    Programming teacher gave us an example of a larger project using multiple files. It is a Dev C++ project that I have gotten to mostly work as an Xcode command line tool project. However, the old code makes use of the system("PAUSE"); call which is obviously Windows-only and has to be commented out.

    So when I try to run the executable, you enter the data and the terminal window goes "poof". :D

    Thanks!
     
  2. macrumors G4

    wrldwzrd89

    Joined:
    Jun 6, 2003
    Location:
    Solon, OH
    #2
  3. thread starter macrumors 65816

    Joined:
    Sep 19, 2009
    #3
    Ah yes, that's exactly what I needed. Thanks!
     

Share This Page