MCPcopy Create free account
hub / github.com/ReadyTalk/avian / removeNewline

Function removeNewline

classpath/java-util.cpp:19–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17#if (!defined PLATFORM_WINDOWS) || (defined _MSC_VER)
18
19void removeNewline(char* s)
20{
21 for (; s; ++s) {
22 if (*s == '\n') {
23 *s = 0;
24 break;
25 }
26 }
27}
28
29#endif
30

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected