Merge branch 'master' into M17_AX25_FM

This commit is contained in:
Jonathan Naylor
2021-05-18 20:05:40 +01:00
19 changed files with 196 additions and 70 deletions

View File

@@ -156,3 +156,17 @@ unsigned int CUtils::countBits(unsigned int v)
return count;
}
void CUtils::removeChar(unsigned char * haystack, char needdle)
{
unsigned int i = 0;
unsigned int j = 0;
while (haystack[i] != '\0') {
if (haystack[i] != needdle)
haystack[j++] = haystack[i];
i++;
}
haystack[j] = '\0';
}