August 26, 2011

calling system with linux and C

Okay i'm learning C and enjoying it pretty well, but I'm running into problems cross platform due to some slight differences. In windows I can use in a console application for example system("pause"); to pause the program until enter is pressed, etc... but that doesn't apply to Linux and the terminal window.

Is there is a list of ways to call system and what they do with C and Linux? Could use a list for Linux and Windows actually since we're on the topic. Let me know i've looked for one haven't had any luck so far though.