Preserved Topic: Obfuscated C in one function (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 07-24-2002 20:49
what does this do? |
Maniac (V) Inmate From: The year 1881 |
posted 07-24-2002 21:01
I'm going to guess that it looks to see if 'line' and 'model' are identical for the length of 'model', which suggests that it's looking to make sure that 'line' starts with 'model'. Of course, I'm not a programmer (which I may or may not have just clearly illustrated). |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 07-24-2002 21:08
I think it basically tells you if the two strings are the same and if not how many characters are different. |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 07-24-2002 22:34
see, I'm good with the first paragraph (and yes, in C multi character strings are arrays), it's the second paragraph that wipes me out. |
Maniac (V) Inmate From: The year 1881 |
posted 07-24-2002 23:00
Here's a little explanation I found: "Compares the first num characters of string1 to the first num characters of string2. The comparison is performed character by character. If a character that is not equal in both strings is found the function ends and returns a value that determines which of them was greater." |
Paranoid (IV) Inmate From: Madison, Indiana, USA |
posted 07-27-2002 06:00
quote:
|
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 07-27-2002 18:42
thanks... I looked up some info on that function and I'm not sure I see how it can help me... |