Originally Posted by yifangt
From your code I need go back the bitwise and other stuffs
Don't worry, you can ignore everything but main() in my code like I said. They're not relevant to your problem -- they're for debugging, they print memory, I whipped them up to make those charts.
If you can start using 'char * const', that would really help I think. The compiler would catch that mistake -- just wouldn't let you do it. (Which is mostly what const
is for, FYI -- a label to inform the programmer what they can and cannot do to a variable.)
I wish I could have any comments with my code corrected side by side, so I know the correct way in that situation.
You post such large programs that fixing them pretty much means rewriting them. I can update the first two lines, sure -- but if all the lines after it are written on false assumptions, that's not much help.
It'd help us if you showed your entire program again when you made changes.