MCPcopy Index your code
hub / github.com/NetHack/NetHack / You_buf

Function You_buf

src/pline.c:338–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338staticfn char *
339You_buf(int siz)
340{
341 if (siz > gy.you_buf_siz) {
342 if (gy.you_buf)
343 free((genericptr_t) gy.you_buf);
344 gy.you_buf_siz = siz + 10;
345 gy.you_buf = (char *) alloc((unsigned) gy.you_buf_siz);
346 }
347 return gy.you_buf;
348}
349
350void
351free_youbuf(void)

Callers 1

verbalizeFunction · 0.85

Calls 1

allocFunction · 0.70

Tested by

no test coverage detected