Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BoevaLab/FREEC
/ chomp
Function
chomp
src/myFunc.cpp:1826–1830 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1824
1825
1826
void chomp (char* s) {
1827
int end = strlen(s) - 1;
1828
if (end >= 0 && s[end] ==
'\n'
)
1829
s[end] =
'\0'
;
1830
}
1831
1832
void chomp (string & s) {
1833
if (s.at(s.length() - 1) ==
'\n'
)
Callers
1
addInfoFromAPileUp
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected