MCPcopy Create free account
hub / github.com/NetHack/NetHack / clear_text_buffer

Function clear_text_buffer

win/X11/wintext.c:426–432  ·  view source on GitHub ↗

Empty the text buffer */

Source from the content-addressed store, hash-verified

424
425/* Empty the text buffer */
426void
427clear_text_buffer(struct text_buffer *tb)
428{
429 tb->text_last = 0;
430 tb->text[0] = '\0';
431 tb->num_lines = 0;
432}
433
434/* Free up allocated memory. */
435void

Callers 2

adjust_status_fancyFunction · 0.85
clear_text_windowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected