Advertising (This ad goes away for registered users. You can Login or Register)

C computer, need some help/advice

Discuss about your favorite (gaming...or not) devices here. The most popular ones will end up getting their own categories
Programming discussions for your favorite Device
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
User avatar
m0skit0
Guru
Posts: 3817
Joined: Mon Sep 27, 2010 6:01 pm

Re: C computer, need some help/advice

Post by m0skit0 » Mon May 02, 2011 4:16 pm

As I already said:
m0skit0 wrote:You should get a good book a bout C and read it first.
and
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)
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).

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
I wanna lots of mov al,0xb
Image
"just not into this RA stuffz"

Post Reply

Return to “Programming and Security”