summaryrefslogtreecommitdiff
path: root/out.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-09-06 22:17:38 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-09-06 22:17:38 -0400
commitf146ede613f0095a12b2fd0f756bae63b167abe2 (patch)
tree5ae5901af95318e6d016001d3d7384f61d625d94 /out.c
parent7097749bf41739feffbb7f6da20b2b951f73aa9d (diff)
started block return values
Diffstat (limited to 'out.c')
-rw-r--r--out.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/out.c b/out.c
index dca1ae7..720322c 100644
--- a/out.c
+++ b/out.c
@@ -2,12 +2,15 @@
/* toc */
#include <stdio.h>
-void foo__bar(void) {
- puts("Hello!");
-;
+void foo(int64_t (*out__)[3]) {
+ int64_t x[3] = {0};
+ *out__ = x;
+ return;
}
void main__(void) {
- foo__bar();
+ int64_t x[3] = foo();
+ printf("Foo: %ld\n", (long)x);
+ return;
}
int main(void) {