D darxun macrumors member Original poster Mar 18, 2008 40 0 May 14, 2008 #1 Hi there, I realised that "system("pause");" doesn't work in xCode (im programming C). Is there anything which does exactly the same? th
Hi there, I realised that "system("pause");" doesn't work in xCode (im programming C). Is there anything which does exactly the same? th
yeroen macrumors 6502a Mar 8, 2007 944 2 Cambridge, MA May 14, 2008 #2 There is no 'pause' shell command. There is a pause() C-function declared in unistd.h, but it's use is deprecated. You'll have to work with signal masks and the sigsuspend() function. If you need to read up on signal handling in C, you can read up on it here: http://www.gnu.org/software/libc/manual/html_node/index.html#toc_Signal-Handling
There is no 'pause' shell command. There is a pause() C-function declared in unistd.h, but it's use is deprecated. You'll have to work with signal masks and the sigsuspend() function. If you need to read up on signal handling in C, you can read up on it here: http://www.gnu.org/software/libc/manual/html_node/index.html#toc_Signal-Handling