Add map beating
This commit is contained in:
parent
2172fcedd1
commit
ea105ba3f3
6 changed files with 119 additions and 18 deletions
17
general.h
17
general.h
|
@ -66,4 +66,21 @@ uint16_t _LCR_simpleStrHash(char (*nextChar)(void), char endChar)
|
|||
return r;
|
||||
}
|
||||
|
||||
int _LCR_strCmp(const char *s1, const char *s2)
|
||||
{
|
||||
while (1)
|
||||
{
|
||||
if (*s1 != *s2)
|
||||
return 0;
|
||||
|
||||
if (*s1 == 0)
|
||||
break;
|
||||
|
||||
s1++;
|
||||
s2++;
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
#endif // guard
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue