mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-06 15:04:18 +00:00
Merge branch 'master' into M17_AX25_FM
This commit is contained in:
commit
8363a72f6a
19 changed files with 196 additions and 70 deletions
14
Utils.cpp
14
Utils.cpp
|
|
@ -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';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue