3 ms·
Yep, except you'd write it extern(C) { void foo(); } https://dlang.org/spec/interfaceToC.html https://dlang.org/spec/interfaceToC.html
by edmccard 9y ago
Yep, except you'd write it
extern(C) { void foo(); }
https://dlang.org/spec/interfaceToC.html https://dlang.org/spec/interfaceToC.html
- vram22 9y agoHere is an example: https://jugad2.blogspot.in/2016/09/calling-simple-c-function-from-d-strcmp.html https://jugad2.blogspot.in/2016/09/calling-simple-c-function...