2 ms·
D does it the easy way: extern (C) size_t strlen(const char*); ... size_t length = strlen(p); You can call any C code like that. You can even sim
by WalterBright 4y ago
D does it the easy way:
extern (C) size_t strlen(const char*);
...
size_t length = strlen(p);
You can call any C code like that. You can even simply import C code!
- vore 4y agoYou can do that fine too with Cgo. This looks like more a binding for the dynamic linker.