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

Function txt_xputs

sys/msdos/vidtxt.c:301–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299 */
300
301void
302txt_xputs(const char *s, int col, int row)
303{
304 char c;
305
306 if (s != (char *) 0) {
307 while (*s != '\0') {
308 txt_gotoxy(col, row);
309 c = *s++;
310 txt_xputc(c, g_attribute);
311 if (col < (CO - 1))
312 col++;
313 txt_gotoxy(col, row);
314 }
315 }
316}
317
318/* write out character (and attribute) */
319void txt_xputc(char ch, int attr)

Callers 1

xputsFunction · 0.85

Calls 2

txt_gotoxyFunction · 0.85
txt_xputcFunction · 0.85

Tested by

no test coverage detected