[flang-commits] [flang] [llvm] [flang] Implement 'F_C_STRING' library function (Fortran 2023) (PR #174474)
Caroline Newcombe via flang-commits
flang-commits at lists.llvm.org
Wed Jan 7 12:24:41 PST 2026
================
@@ -145,4 +145,18 @@ subroutine c_f_procpointer(cptr, fptr)
! TODO: implement
end subroutine c_f_procpointer
+ ! F_C_STRING - Convert Fortran string to C null-terminated string
+ ! Fortran 2023 standard intrinsic
+ pure function f_c_string(string, asis) result(res)
----------------
cenewcombe wrote:
Since this is such a simple implementation, I opted to move it to a submodule.
https://github.com/llvm/llvm-project/pull/174474
More information about the flang-commits
mailing list