We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20344e5 commit 58eacb5Copy full SHA for 58eacb5
src/c/error_main.c
@@ -1,9 +1,10 @@
1
// Example of Fortran erroring with C main
2
+#include <stdlib.h>
3
4
extern void error_fortran(int*);
5
6
int main(void) {
7
int code = 42;
8
error_fortran(&code);
- return 0;
9
+ return EXIT_SUCCESS;
10
}
src/cxx/error_main.cxx
// Example of Fortran erroring with C++ main
+#include <cstdlib>
extern "C" void error_fortran(int*);
int main() {
0 commit comments