1 2 3 4 5 6 7 8
extern(C) int printLibraryString(const char *str); void main () { immutable ret = printLibraryString ("C foo"); assert (ret == 3); }