MCPcopy Create free account
hub / github.com/BoevaLab/FREEC / strccnt

Function strccnt

src/myFunc.cpp:1756–1764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1754
1755
1756size_t strccnt(const char *s, int c)
1757{
1758const unsigned char *us = (const unsigned char *) s;
1759const unsigned char uc = c;
1760size_t n = 0;
1761if (!uc) return 1;
1762while (*us) if (*us++ == uc) n++;
1763return n;
1764}
1765
1766
1767void strkeepOnly(char *s, const char *c) {

Callers 4

getReadNumberFromPileupFunction · 0.85
processPileUPLineMethod · 0.85
addInfoFromAPileUpMethod · 0.85
processReadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected