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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Exporting Video to Windows users - best video formats? CmactalkAust Digital Video 6 Sep 11, 2012 09:09 AM
PLS HELP: Unable to boot to Windows/Mac OS X Cmd-the-World OS X 0 Mar 8, 2011 04:40 AM
Mac equivalent to Windows Journal? Beth in MN Mac Basics and Help 1 Oct 20, 2009 01:40 PM
Mac OS X Tab function equivalent to Windows OS OatmealRocks Mac Applications and Mac App Store 4 Aug 5, 2009 07:09 PM
What are the Mac equivalents to Windows Cad programs? johnbro23 Mac Applications and Mac App Store 21 Dec 16, 2004 11:50 AM


All times are GMT -5. The time now is 08:41 PM.

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

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