When I load the array manually, it works(somewhat): var arr: CArray[cstring] arr[0] = "start" arr[1] = "arg1" arr[2] = "arg2" arr[3] = "arg3" arr[4] = "arg4" echo $fn(5, unsafeAddr arr) Run
the C library works _correctly_ and the logs show good results while the nim program will output garbage.