mirror of
https://github.com/opentx/opentx.git
synced 2025-07-14 11:59:50 +03:00
Bind and registration ok (hoppefully...)
This commit is contained in:
parent
9472fd2132
commit
2559a84a24
5 changed files with 18 additions and 17 deletions
|
@ -78,6 +78,16 @@ int zchar2str(char * dest, const char * src, int size)
|
|||
return size+1;
|
||||
}
|
||||
|
||||
int cmpStrWithZchar(char * charString, char * zcharString, int size)
|
||||
{
|
||||
for(int i=0; i < size; i++) {
|
||||
if((uint8_t)char2zchar(charString[i]) != (uint8_t)zcharString[i]) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned int effectiveLen(const char * str, unsigned int size)
|
||||
{
|
||||
while (size > 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue