file.seek is your friend. You should not use any dynamic allocation to make it more robust (yes preallocating fixed memory size with "char circular_ring[N * MAX_SIZE]")
Where N and MAX_SIZE are fixed.
Well. It requires a complete rewrite for this code to not create a risk for your users. Your code is like full of hidden landmine by lack of design.
And you know what?
It used to be standard knowledge for introduction to CS for scientific. You know why? Because no users of computers like to lose their precious data made during a very long measurement spilling huge amount of data and costing a lot of resources. (like gold, helium, molybden, electricity, time, wages of qualified operators....)
It seems like coders do not care of their users, like a builder thinking it is reasonable to build 50 store buildings on quicksands because people only judges builder by the look of their creation.
Click on the comment's timestamp to go to its page, then click 'vouch'. But note that you need more than 30 karma before the 'vouch' and 'flag' links appear.
Not Julie. It is a pun in french. Julie is like calling me Hanni when my real name is more like Hanniballs. And I still have my balls. So keep it julie1.
But I guess you may lack of context to get it right, as for the rest of your comment. ;)
file.seek is your friend. You should not use any dynamic allocation to make it more robust (yes preallocating fixed memory size with "char circular_ring[N * MAX_SIZE]") Where N and MAX_SIZE are fixed.
Well. It requires a complete rewrite for this code to not create a risk for your users. Your code is like full of hidden landmine by lack of design.
And you know what?
It used to be standard knowledge for introduction to CS for scientific. You know why? Because no users of computers like to lose their precious data made during a very long measurement spilling huge amount of data and costing a lot of resources. (like gold, helium, molybden, electricity, time, wages of qualified operators....)
It seems like coders do not care of their users, like a builder thinking it is reasonable to build 50 store buildings on quicksands because people only judges builder by the look of their creation.