#include "Bdef.h"

#if (INTFACE == C_CALL)
int Ckrecvid(ConTxt, rsrc, csrc)
int  ConTxt;
int  rsrc;
int  csrc;
#else
int krecvid_(ConTxt, rsrc, csrc)
int  *ConTxt;
int  *rsrc;
int  *csrc;
#endif
{
   int msgid, vsrc;
   BLACSCONTEXT *ctxt;

   MGetConTxt(Mpval(ConTxt), ctxt);
   vsrc = Mvkpnum(ctxt, Mpval(rsrc), Mpval(csrc));
   msgid = Mrvid(ctxt, vsrc);

   return(msgid);
}  /* end krecvid */
