MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / chomp

Function chomp

db/memdebug.c:195–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195static void chomp(char *s) {
196 while (*s) {
197 if (*s == '\n') {
198 *s = 0;
199 break;
200 }
201 s++;
202 }
203}
204
205/* this gets run pre-init, so it can use the default system allocators */
206static void init_symtab(void) {

Callers 1

init_symtabFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected