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

Function mswin_init_text_buffer

outdated/sys/wince/mhtxtbuf.c:37–50  ·  view source on GitHub ↗

----------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

35static TCHAR *nh_append(TCHAR *s, int *size, const char *ap);
36/*----------------------------------------------------------------*/
37PNHTextBuffer
38mswin_init_text_buffer(BOOL wrap_text)
39{
40 PNHTextBuffer pb = (PNHTextBuffer) malloc(sizeof(NHTextBuffer));
41 if (!pb)
42 panic("Out of memory");
43
44 ZeroMemory(pb, sizeof(NHTextBuffer));
45 pb->b_wrap_text = wrap_text;
46 pb->n_size = 0;
47 pb->n_used = 0;
48 pb->text_buffer_line = NULL;
49 return pb;
50}
51/*----------------------------------------------------------------*/
52void
53mswin_free_text_buffer(PNHTextBuffer pb)

Callers 2

mswin_init_text_windowFunction · 0.85
onMSNHCommandFunction · 0.85

Calls 1

panicFunction · 0.50

Tested by

no test coverage detected