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.


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
15297 Postings in 1378 Threads, 254 registered users, 12 users online (0 registered, 12 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum