#include "Bdef.h"

#if (INTFACE == C_CALL)
int Cksendid(ConTxt, rdest, cdest)
int  ConTxt;
int  rdest;
int  cdest;
#else
int ksendid_(ConTxt, rdest, cdest)
int  *ConTxt;
int  *rdest;
int  *cdest;
#endif
{
   int vdest, msgid;
   BLACSCONTEXT *ctxt;

   MGetConTxt(Mpval(ConTxt), ctxt);
   vdest = Mvkpnum(ctxt, Mpval(rdest), Mpval(cdest));
   msgid = Msdid(ctxt, vdest);

   return(msgid);

}  /* end ksendid */
