We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 244fb21 commit 8ecb9ddCopy full SHA for 8ecb9dd
test/pointer/README.md
@@ -6,7 +6,10 @@ and modern "nullptr" in
6
[C23](https://en.cppreference.com/w/c/language/nullptr)
7
are represented in Fortran
8
[iso_c_binding](https://fortranwiki.org/fortran/show/iso_c_binding).
9
+
10
Unlike in C / C++, do not check equality with C_NULL_PTR in Fortran.
11
Instead, by definition the
12
[c_associated()](https://fortranwiki.org/fortran/show/c_associated)
13
logical function returns ".false." if the C_PTR is C_NULL_PTR, and ".true." otherwise.
14
+See [strptime.f90](./strptime.f90)
15
+for an example of checking in Fortran for a C null pointer returned from a function.
0 commit comments