MLPutMessage (C 函数)
MLPutMessage 已经被 WSPutMessage 所取代.
int MLPutMessage(MLINK link,int msg)
把消息 msg 发送给链接对象 link.
更多信息

- MathLink 消息提供带外消息发送和接收,它不依赖于数据的正常传递.
- MLPutMessage() 在错误事件中返回0,如果函数成功则返回非零值.
- 如果 MLPutMessage() 失败,则使用 MLError() 检索错误代码.
- MLPutMessage() 在 MathLink 的标头文件 mathlink.h 中被声明.
范例
基本范例 (1)
#include "mathlink.h"
/* send an abort message to a link */
void f(MLINK lp)
{
if(! MLPutMessage(lp, MLAbortMessage))
{ /* unable to send message to lp */ }
}