I'm writing a DOS program and is using system() to call an exe.
How do I trap the return error of the system() call?

Also is there any Sleep() function for a DOS program?

Thanks.