Wrote a function to convert a C string to a Fortran string