29.09.2011, 10:35
It's a very strange behaving function lol, most languages that have string or if you like character array manipulation simply return true or false 1 or 0, there was either a match, or not one.
But my primary language is Object Pascal and you don't use a function to compare a string, it's simply:
@leong124: I'm using something very similar, except overriding strcmp (checking if null first), and it's working great.
IS that generally faster than strcmp?
But my primary language is Object Pascal and you don't use a function to compare a string, it's simply:
Код:
If (myStr1 = myStr2) Begin MessageBox(0, "Success", "They match", MB_OK); End;
IS that generally faster than strcmp?