On Wednesday, 21 March 2018 at 17:12:07 UTC, Timoses wrote:
On Wednesday, 21 March 2018 at 16:22:45 UTC, Martin
Tschierschke wrote:
Is there an step by step introduction how to convert a C
header of an external lib into the right extern(C){} block?
A blog post or tutorial, or chapter in a D book? (I have those
from Packt Publishing)
While googling I found this:
https://dlang.org/blog/2017/12/05/interfacing-d-with-c-getting-started/
Haven't read it yet, but might give you some more insight.
For automatic conversion I stumbled across Dstep which I so far
like a lot:
https://github.com/jacob-carlborg/dstep
Thank you! I will have a look at both, an Mike Parker is pointing
to his book, too,
so now together with the post from "nkm1" I should be able to
make it!
@ketmar, I learned C but the counter of years from that time was
stored in a nibble and so I got an overflow...error :-)