How to do DPI-C "import declaration" in UVM where the arguments passed to the DPI are dynamic arrays?

In reply to cgales:
Thanks for the response @cgales. I have come across the solution that you mentioned while doing a little google search. Is there any work around if I do not have privilege of making change to the C implementation?