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

Function init_text_buffer

win/X11/wintext.c:415–423  ·  view source on GitHub ↗

Initialize text buffer. */

Source from the content-addressed store, hash-verified

413
414/* Initialize text buffer. */
415void
416init_text_buffer(struct text_buffer *tb)
417{
418 tb->text = (char *) alloc(START_SIZE);
419 tb->text[0] = '\0';
420 tb->text_size = START_SIZE;
421 tb->text_last = 0;
422 tb->num_lines = 0;
423}
424
425/* Empty the text buffer */
426void

Callers 2

create_text_windowFunction · 0.85

Calls 1

allocFunction · 0.50

Tested by

no test coverage detected