Posted by: gidilat August 3, 2005
Login in to Rate this Post:
0
?
![](/wysiwyg/editor/images/smiley/msn/thumbs_up.gif)
![10 more flags than likes deactivates post.](/wysiwyg/editor/images/smiley/msn/thumbs_down.gif)
The malloc version from arch119 would work.
While Testdirector version with:
--- st = p = "abcde";
--- q = "pqrst";
--- while(*p++=*q++);
should not work. It should compile fine though. You are trying to modify a string constant. Thats dangerous. A good OS should detect that danger. Thats how some hackers crack system.
GN