summaryrefslogtreecommitdiff
path: root/out.c
diff options
context:
space:
mode:
Diffstat (limited to 'out.c')
-rw-r--r--out.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/out.c b/out.c
index cd8f28b..de7dad8 100644
--- a/out.c
+++ b/out.c
@@ -1,19 +1,20 @@
#include "out.h"
/* toc */
+int64_t N = 10;
#include <stdio.h>
-void foo(int64_t (*out__)[3][3]) {
- int64_t av___0[3][3] = {{0}};
- int64_t (*x)[3] = av___0;
- memcpy(*out__, x, 9 * sizeof(int64_t )); return;
+void foo(int64_t (*out__)[10][10]) {
+ int64_t av___0[10][10] = {{0}};
+ int64_t (*x)[10] = av___0;
+ memcpy(*out__, x, 100 * sizeof(int64_t )); return;
}
void main__(void) {
- int64_t av___1[3][3];
+ int64_t av___1[10][10];
foo(&av___1);
- int64_t (*x)[3] = av___1;
+ int64_t (*x)[10] = av___1;
-for (int i = 0; i < 3; i++)
- for (int j = 0; j < 3; j++)
+for (int i = 0; i < 10; i++)
+ for (int j = 0; j < 10; j++)
printf("%ld", x[i][j]);
puts("");
;