We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d298d2c commit 54ab6f6Copy full SHA for 54ab6f6
src/c/struct_main.c
@@ -1,5 +1,6 @@
1
#include <stdbool.h>
2
#include <string.h>
3
+#include <stdlib.h>
4
5
struct params {
6
// order and lengths must match in Fortran and C
@@ -22,6 +23,6 @@ s.Lmy_char = strlen(s.my_char);
22
23
24
struct_check(&s);
25
-return 0;
26
+return EXIT_SUCCESS;
27
28
}
src/cxx/struct_main.cxx
@@ -1,4 +1,5 @@
#include <cstring>
+#include <cstdlib>
@@ -10,7 +11,7 @@ struct params {
10
11
12
extern "C" void struct_check(struct params *);
13
-int main(void) {
14
+int main() {
15
16
struct params s;
17
@@ -21,6 +22,6 @@ s.Lmy_char = strlen(s.my_char);
21
0 commit comments