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

Function newmail

sys/vms/vmsmail.c:486–503  ·  view source on GitHub ↗
(foo)

Source from the content-addressed store, hash-verified

484volatile int broadcasts = 0;
485
486void
487newmail(foo)
488struct mail_info *foo;
489{
490#define STRING(s) ((s) ? (s) : "<null>")
491 printf("\n\
492 message type = %d\n\
493 display text = \"%s\"\n\
494 object name = \"%.*s\"\n\
495 response cmd = \"%s\"\n\
496",
497 foo->message_typ, STRING(foo->display_txt),
498 (foo->object_nam && foo->response_cmd)
499 ? (foo->response_cmd - foo->object_nam - 1)
500 : strlen(STRING(foo->object_nam)),
501 STRING(foo->object_nam), STRING(foo->response_cmd));
502#undef STRING
503}
504
505void
506ckmailstatus(void)

Callers 1

ckmailstatusFunction · 0.70

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected