Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 26, 2010, 12:49 PM   #1
mac2x
macrumors 65816
 
Join Date: Sep 2009
Unix equivalent to Windows PAUSE?

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".

Thanks!
__________________
Retina MBP | 2.6 GHz i7 | 16 GB RAM

Gaming Rig | Core i7-2600K | 16 GB RAM | 160 GB OCZ Agility 2 | EVGA GTX 770 SC | Windows 7 Pro x64 | ASUS VG248QE
mac2x is offline   0 Reply With Quote
Old Nov 26, 2010, 12:56 PM   #2
wrldwzrd89
macrumors G4
 
wrldwzrd89's Avatar
 
Join Date: Jun 2003
Location: Solon, OH
According to http://www.softpanorama.org/Internal...em_calls.shtml there are two system calls that could potentially be useful for this purpose: wait() and sleep(). I think sleep() is what you want, though.
__________________
iMac Intel (Rev H, 27"), 1TB HDD, 16GB RAM, 10.8.4
wrldwzrd89 is offline   0 Reply With Quote
Old Nov 26, 2010, 01:06 PM   #3
mac2x
Thread Starter
macrumors 65816
 
Join Date: Sep 2009
Ah yes, that's exactly what I needed. Thanks!
__________________
Retina MBP | 2.6 GHz i7 | 16 GB RAM

Gaming Rig | Core i7-2600K | 16 GB RAM | 160 GB OCZ Agility 2 | EVGA GTX 770 SC | Windows 7 Pro x64 | ASUS VG248QE
mac2x is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
OS X Equivalent of Windows dBpoweramp JoelBC Digital Audio 2 Nov 26, 2013 02:42 PM
Equivalent line of PC/Windows-based laptop to rMBP? bounce08 MacBook Pro 10 Jul 25, 2013 04:03 PM
Windows compatible equivalent for TextExpander 4 features ianbonachita Mac Applications and Mac App Store 1 Mar 3, 2013 06:54 AM
Pause Photostream mlemonds OS X 0 Oct 27, 2012 09:22 PM
Screenflow equivalent for Windows Doctor Q Mac Applications and Mac App Store 4 Sep 5, 2012 02:17 PM

Forum Jump

All times are GMT -5. The time now is 07:07 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC