MLPutInteger64 (C 函数)

MLPutInteger64 已经被 WSPutInteger64 所取代.

int MLPutInteger64(MLINK link,mlint64 i)

把一64位整数写入由 link 指定的 MathLink 连接.

更多信息

  • 通过给定数字列表,然后使用 FromDigits 转换成数字,便可以发送任意精度的整数给 Mathematica.
  • MLPutInteger64() 在错误事件中返回0,如果函数成功则返回非零值.
  • 如果 MLPutInteger64() 失败,则使用 MLError() 检索错误代码.
  • MLPutInteger64() 在 MathLink 标头文件 mathlink.h 中被声明.

范例

基本范例  (1)

#include "mathlink.h"

/* send a 64-bit number to a link */

void f(MLINK lp)
{
    mlint64 a;

    a = 0x6553600065535;

    if(! MLPutInteger64(lp, a))
        { /* unable to send the 64 bit integer to lp */ }
}