I have a c function that I want to return a string.
If I print the string before it is returned then I see croc_data_0186.idx
If I try and print the string
Line is a local variable and is removed at the end of the function.
You should use malloc, or strcpy it to a string pointer passed as argument.