Created
April 25, 2015 07:32
-
-
Save r9y9/e0f9a7df6baeb361d3a0 to your computer and use it in GitHub Desktop.
Apache Portable Runtimeをjuliaから呼んでみるテスト
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const libapr = "./libapr-1.0" | |
@assert dlopen(libapr) != C_NULL | |
argc = Array(Cint, 1) | |
argv = Array(Ptr{Cchar}, 1) | |
env = Array(Ptr{Cchar}, 1) | |
# 引数なしの初期化 | |
# ccall((:apr_initialize, libapr), Void, ()) | |
status = ccall((:apr_app_initialize, libapr), | |
Int, (Ptr{Cint}, Ptr{Ptr{Cchar}}, Ptr{Ptr{Cchar}}), | |
argc, argv, env) | |
println(status) | |
ccall((:apr_terminate, libapr), Void, ()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment