i've set up a timer that execute those 3 lines of code every time it expire (10 seconds intervals). When i let the code run for about 4-5 hour, it crashes, but im clueless has to why it does so. cmdOutput is a FILE*
cmdOutput = popen("ftpwho -v", "r");
int a = fread(buff, sizeof(char), 1, cmdOutput);
There is nothing else in my code. Just that and the timer and if i comment out the lines above and let only the timer execute, it run fine for days.
could someone point some clues?