system("d:\\ffmpeg -i ..........);//i want the program stop here and let ffmpeg.exe get to its end and then run the next line
1-"ffmpeg" process: ffmpeg is a program which has been called by "system" and controled by O.S. This program take a long time to get end.
2-"indexFunction" process which is a function defined by me in C code. This function calculate indexes according to an algorithm and take a long time to be completed to.
my question is that when the above program is running, when it pass the ffmpeg to O.S to run the ffmpeg.exe, then before that ffmpeg process get to its end, the program run the function "IndexingFunction" or no?
I am interested to start "IndexFunction" when the "ffmpeg" finishes its process. How can i do this? How can i halt the running whole program when it get to "system(d:\ffmpeg...) and when this line finished then continue the rest of the program lne? (something like interpreters)