mr_init - initializes ports for a thread
#include <mrendez.h>
The mr_init() primitive is used to create and initialize ports for a thread that can be used for receiving messages with the mr_receive() call. nports defines the number of ports to create. A thread can have a maximum of 32 ports.
If successful, mr_init() returns 0, otherwise it returns -1 and sets errno to indicate the error condition.