removes all messages from the mailbox
INCLUDE 'msglib.h' clear_mailbox
clear_mailbox
(none)
This predicate removes all entries from the mailbox of the process. Its use should be carefully evaluated, as also system messages could be lost!. It is not advisable to use together with the client-server or object layer, but rather to construct your own communication level.
Always succeeds. No runtime errors.
prolog-process