 |
strcmp |
Function (ROM Call 0x271) |
Compares one string to another.
strcmp performs an unsigned comparison of s1 to s2. It starts with the first
character in each string and continues with subsequent characters until the
corresponding characters differ or until the end of the strings is reached.
strcmp returns a value that is
- < 0 if s1 is less than s2
- == 0 if s1 is the same as s2
- > 0 if s1 is greater than s2
More precisely, if the strings differ, the value of the first nonmatching character in s2
subtracted from the corresponding character in s1 is returned.
Note: This routine is declared as "short" although the ANSI standard proposes "long". This is important,
because TIOS the strncmp routine puts garbage in the higher half of the d0 register.
Used by: cmd_movevar, VarOpen, LoadDLL, compare_expressions, EV_getAppID, MO_currentOptions, MO_digestOptions, FFindFirst, FFindNext, FOpen, OSLinkCmd, sendcalc, GraphOrTableCmd, OO_AppNameToACB, tokenize_if_TI_92_or_text, FolderCur, FolderOp, IsMainFolderStr, SymFindFirst, SymSysVar, VarRecall, VarStore, ROM Call 0x131
See also: strncmp, cmpstri, stricmp