View Single Post
Old Jun 9th, 2008, 11:47 AM   #7
Sorrofix
Expert Bug Developer
 
Sorrofix's Avatar
 
Join Date: Apr 2008
Posts: 22
Rep Power: 0 Sorrofix is on a distinguished road
Re: Cross-platform exec()

>you don't know when it has completed it's task or failed
system() waits until its child process has completed. Upon completion, system() will return the value returned by the child process. So yes, using the return value of system(), you can determine the success of the program you ran.
Sorrofix is offline   Reply With Quote