andm0skit0 wrote:You should get a good book a bout C and read it first.
Same goes for comparing. Those comparisons will never be true because they are 2 different strings, even if they have the same content. Their memory addresses differ (and that's what you're comparing, their memory addresses).m0skit0 wrote:to copy a string to another one you need to use strcpy, you cannot simply use = (since you're then assigning pointers and not their content)
Since you're too lazy, here's a link for learning how to use C strings: http://www.dfstermole.net/OAC/hstrings.html. Please read it.
Advertising

