Posted by: gidilat August 3, 2005
Information technology
Login in to Rate this Post:     0       ?        
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
Read Full Discussion Thread for this article