23.08.2016, 10:52
Very poorly optimized.
You're creating arrays inside of loops.
You're using "flineexist" in loops, which means you're opening the file and closing it 25 (MAX_MSG) times.
Plus, that function by itself is creating a 256 array 25 (MAX_MSG) times.
There are A LOT more stuff like this, but I'm too lazy to show each one of them.
NOTE: I'm just being honest, I don't mean to offend you. I think honesty is what makes someone fix their mistakes.
You're creating arrays inside of loops.
You're using "flineexist" in loops, which means you're opening the file and closing it 25 (MAX_MSG) times.
Plus, that function by itself is creating a 256 array 25 (MAX_MSG) times.
There are A LOT more stuff like this, but I'm too lazy to show each one of them.
NOTE: I'm just being honest, I don't mean to offend you. I think honesty is what makes someone fix their mistakes.

