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

Function noteErrorMessage

outdated/sys/mac/mrecover.c:469–479  ·  view source on GitHub ↗

* handle errors inside of note(). the error message is appended to the * given message but on a separate line and must fit within nmBufSize. */

Source from the content-addressed store, hash-verified

467 * given message but on a separate line and must fit within nmBufSize.
468 */
469static void
470noteErrorMessage(unsigned char *msg, unsigned char *errMsg)
471{
472 short i = nmt.nmBuf[0] + 1; /* insertion point */
473
474 BlockMove(&msg[1], &nmt.nmBuf[i], msg[0]);
475 nmt.nmBuf[i + msg[0]] = '\r';
476 nmt.nmBuf[0] += (msg[0] + 1);
477
478 note(memFullErr, 0, errMsg);
479}
480
481/*
482 * display messages using Notification Manager or an alert.

Callers 1

noteFunction · 0.85

Calls 1

noteFunction · 0.85

Tested by

no test coverage detected