thanks for giving advices. But i still need to know that when i run the below code:
Quote:
while(){
system("d:\\ffmpeg -i ..........);
IndexFunction();
}
when exe file is running and pass the stream process to the ffmpeg through "system" command, naturally then call "IndexFunction" and continue the program process to perform the function lines of codes. But i need a halt for finishing ffmpeg command then after finishing this process stream , the main program process continues and goes to "IndexFunction". I want something like interpreter here, step by step performing requestes. and after finishing one process the next step process start.
for this purpose what should i do in C?