The definitive Wolfram Language and notebook experience
The original technical computing environment
All-in-one AI assistance for your Wolfram experience
More mobile apps
We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise
WolframConsulting.com
More Wolfram Solutions
More Solutions for Education
Courses in computing, science, life and more
Learn, solve problems and share ideas.
News, views and insights from Wolfram
Resources for
int MLPutData(MLINK link,const char *b,int count)
把来自于缓冲区 b 的 count 个字节写入由 link 指定的 MathLink 连接.
#include <string.h>#include "mathlink.h"/* send "Hello World!" to a link */void f(MLINK lp){ if(! MLPutNext(lp, MLTKSTR)) { /* unable to put type MLTKSTR to lp */ } if(! MLPutSize(lp, strlen("Hello World!")) { /* unable to put the length of "Hello World!" to lp */ } if(! MLPutData(lp, "Hello World!", strlen("Hello World!"))) { /* unable to put the data "Hello World!" to lp */ }}
C 函数: MLPutType() MLPutArgCount() MLPutSize()
1996年引入 (3.0) | 在以下年份被更新:2007 (6.0)