extern "C" { void foo(); }
extern (C++) int foo(int i, int j, int k);
But, if you don't want C++, then [1]:
extern (C) int foo(int i, int j, int k);
[0] http://dlang.org/spec/cpp_interface.html
[1] http://dlang.org/spec/interfaceToC.html
extern(C) { void foo(); }
https://jugad2.blogspot.in/2016/09/calling-simple-c-function...