MCPcopy Create free account
hub / github.com/apache/trafficserver / chomp

Method chomp

src/tscore/TextBuffer.cc:273–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273void
274TextBuffer::chomp()
275{
276 while ((nextAdd > bufferStart) && (nextAdd[-1] == '\n')) {
277 --nextAdd;
278 ++spaceLeft;
279 *nextAdd = '\0';
280 }
281}

Callers 3

ServerBacktraceFunction · 0.80
write_procfd_fileFunction · 0.80
crashlog_write_procnameFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected