MCPcopy Create free account
hub / github.com/crawl/crawl / wrapcprintf

Function wrapcprintf

crawl-ref/source/cio.cc:323–330  ·  view source on GitHub ↗

cprintf that knows how to wrap down lines

Source from the content-addressed store, hash-verified

321
322// cprintf that knows how to wrap down lines
323void wrapcprintf(int wrapcol, const char *s, ...)
324{
325 va_list args;
326 va_start(args, s);
327 string buf = vmake_stringf(s, args);
328 va_end(args);
329 wrapcprint_skipping(0, wrapcol, buf);
330}
331
332/**
333 * Print a string wrapped by some value, relative to the current cursor region,

Callers 2

print_segmentMethod · 0.85
displayMethod · 0.85

Calls 4

vmake_stringfFunction · 0.85
wrapcprint_skippingFunction · 0.85
cgetsizeFunction · 0.85
get_cursor_regionFunction · 0.70

Tested by

no test coverage detected