Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

C's system() & COMMAND.COM (Developers)

posted by marcov(R), 12.09.2014, 20:00

> if you want to be compatible to Borland or Microsoft, system("command") is
> equivalent to %COMSPEC%/c command, and there is no errorlevel returned
> from the executed command available.

FWIW:

I looked up the system() function in my copy of K&R 2nd edition, and it says

"In the UNIX system, the status return is the value returned by exit"

Further it says "the return value is implementation-dependent".

 

Complete thread:

Back to the forum
Board view  Mix view
15115 Postings in 1359 Threads, 249 registered users, 26 users online (1 registered, 25 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum