[libc-commits] [clang-tools-extra] [flang] [llvm] [libc] [compiler-rt] [lldb] [clang] [libcxx] [flang] FDATE extension implementation: get date and time in ctime format (PR #71222)

Yi Wu via libc-commits libc-commits at lists.llvm.org
Wed Jan 3 09:10:39 PST 2024


================
@@ -22,6 +22,9 @@ extern "C" {
 // CALL FLUSH(n) antedates the Fortran 2003 FLUSH statement.
 void FORTRAN_PROCEDURE_NAME(flush)(const int &unit);
 
+// GNU extension subroutine FDATE
+void FORTRAN_PROCEDURE_NAME(fdate)(std::byte *string, std::int64_t length);
----------------
yi-wu-arm wrote:

it was `std::int8_t` but when I was doing for getlog https://github.com/llvm/llvm-project/pull/74628#discussion_r1420503257, pointed out that it would be better to use std::byte since I have to cast them into `char` anyways.

https://github.com/llvm/llvm-project/pull/71222


More information about the libc-commits mailing list