![]() Preserved Topic: Obfuscated C in one function (Page 1 of 1) |
|
---|---|
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
![]() what does this do? |
Maniac (V) Inmate From: The year 1881 |
![]() 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 |
![]() 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 |
![]() 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 |
![]() 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 |
![]() quote:
|
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
![]() thanks... I looked up some info on that function and I'm not sure I see how it can help me... |