in reply to double array in XS

Like fred, I'm not 100% sure how to help you; others here may know XS better than I, but I would consider writing a wrapper function that took in all 3 arguments (or more?) and called the appropriate C function correctly.