Use another language to call a function: Difference between revisions
Content added Content deleted
(Add Rust implementation) |
(Updated to work with Nim 1.4: replaced ".. <text.len" with ".. text.high". Changed compilation command for C.) |
||
Line 1,028:
return 0
for i in 0 ..
data[i] = text[i]
length = text.len
Line 1,053:
}
}</lang>
Compile the above with <code>gcc -ldl -o main main.c libquery
<pre>./main
Here am I
|