INF: system() Returns an Exit Code Under OS/2

ID Number: Q44897

5.10 6.00 6.00a 6.00ax | 5.10 6.00 6.00a

MS-DOS | OS/2

Summary:

In Microsoft C versions 5.0, 5.1, 6.0, 6.0a, and 6.0ax, the system()

function under OS/2 returns the exit code of the process executed,

unlike MS-DOS. Under MS-DOS the system() function always returns 0 to

indicate successful completion.

Under both operating systems, if the system() function fails then a

value of -1 is returned.

Additional reference words: 5.00 5.10 6.00 6.00a 6.00ax