I have a programm similar to this
Code:char line[1024]; while (1) { if (!fgets(line,1024,stdin)) continue; func(line) }
Currently 'func' is quit slow. My program does not work propertly when It receives data from stdin in a fast way. It looks like internal stdin buffer fill and I miss data.
However, if the data is receive in a slow manner, func has time to process all data.
Is there any way I can increase the stdin buffer length?
Or is there any way I can solve this problem?
Thank you very much.
Regards
FS