MLTransferToEndOfLoopbackLink (C 函数)
MLTransferToEndOfLoopbackLink 已经被 WSTransferToEndOfLoopbackLink 所取代.
更多信息

- s 与 d 应该是不同的.
- s 必须是回环链接,d 可以是回环链接或一个普通链接.
- MLTransferToEndOfLoopbackLink() 在错误事件中返回0,如果函数成功则返回非零值.
- MLTransferToEndOfLoopbackLink() 在 MathLink 的标头文件 mathlink.h 中被声明.
范例
基本范例 (1)
#include "mathlink.h"
/* build up an expression on a loopback link and send that expression to a second link */
void f(MLINK lp1, MLINK lp2)
{
if(! MLPutFunction(lp1, "EvaluatePacket", 1))
{ /* unable to put the function to lp1 */ }
if(! MLPutFunction(lp1, "ToExpression", 1))
{ /* unable to put the function to lp1 */ }
if(! MLPutString(lp1, "a = Table[Random[Integer, 11],{12}];", 36))
{ /* unable to put the string to lp1 */ }
if(! MLEndPacket(lp1))
{ /* unable to send the end-of-packet indicator to lp1 */ }
if(! MLFlush(lp1))
{ /* unable to flush any outgoing data buffered in lp1 */ }
if(! MLTransferToEndOfLoopbackLink(lp2, lp1))
{ /* unable to transfer all the data from lp1 to lp2 */ }
}