Passing a String Array from C (C++) into SV using DPI

In reply to mbehrin:

Thanks for the solution.
I have a similar problem where i want to write string data to a structure instead of an array. Could you please let me know the way to handle that in both sv and c ?