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

Function strkeepOnly

src/myFunc.cpp:1767–1778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1765
1766
1767void strkeepOnly(char *s, const char *c) {
1768 string newString;
1769 for (unsigned int i = 0; i< strlen(s);i++) {
1770 for (unsigned int j = 0; j< strlen(c);j++){
1771 if (s[i]==c[j])
1772 newString+=s[i];
1773 break;
1774 }
1775 }
1776 strcpy(s, newString.c_str());
1777 return;
1778}
1779void strkeepOnly(string & s, const char *c) {
1780 string newString;
1781 for (unsigned int i = 0; i< s.length(); i++) {

Callers 1

addInfoFromAPileUpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected