Is there any way to transfer execution to another program from within yours? In DOS? Windows? I have a feeling I've seen a standard C library function that does this, but don't remeber it.
Thanks.
Is there any way to transfer execution to another program from within yours? In DOS? Windows? I have a feeling I've seen a standard C library function that does this, but don't remeber it.
Thanks.
Do you mean the system() function? Look up the syntax for it, though. I'm not too familiar with it.
1978 Silver Anniversary Corvette
It isn't portable so you will have to check your compiler's documentation, but you can use spawn() or execl() to spawn a child process or just run another program then exit... it is a little lengthy to cover in a forum, so look it up in your docs...
one fish two fish
red fish blue fish