0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Julialangからの文字列を受け取るには

Last updated at Posted at 2016-07-03

数値型だとunboxする旨の説明があったが、文字列は、どうするのか、
ググって、Githubのコードから編み出した。

jl_value_t *ret = jl_eval_string(juliaScript);
if(jl_is_byte_string(ret)) {
  nullTerminatedString = (char*)jl_bytestring_ptr(ret);
}

jl_is_byte_stringはどうも、見つけたコードによると、
0.5から変更になるっぽい。

関連記事

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?