|
SOLUTIONS
|
MLGetString()
int MLGetString(MLINK link, const char **s)
从由 link 指定的 MathLink 连接中获取一个字符字符串,并把字符存在 s 中.
更多信息更多信息
- MLGetString() 为字符字符串分配内存. 必须调用 MLReleaseString() 释放该内存. 如果 MLGetString() 失败并且函数的返回值表明一个错误,不要调用含有 s 内容的 MLReleaseString().
- MLGetString() 返回不可变的数据.
- MLGetString() 创建一个由 \0 终止的字符串.
- MLGetString() 把 Mathematica 中的单个
字符存为一对 \\ 字符. - MLGetString() 以专用格式存储 Mathematica 的特殊字符.
- MLGetString() 在错误事件中返回0,如果函数成功则返回非零值.
- 如果 MLGetString() 失败,则使用 MLError() 检索错误代码.
- MLGetString() 在 MathLink 的标头文件 mathlink.h 中被声明.
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »
