#GetNoMsg() ?
02-Sep-90 13:57:42
Sb: #118349-#GetNoMsg() ?
Fm: Ariel Butler 76515,1572
To: Khalid Aldoseri 75166,2531
Khalid, how about…
struct Message *
PollGetMsg(msgport)
{
if (!msgport->mp_MsgList.lh_Head->ln_Succ)
return(Remove(msgport->mp_MsgList.lh_Head));
else
return(NULL);
}
This might not be exactly right, but I got the idea from "Lists and Queues"
in the Exec manual.
Ariel