diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-09-06 22:17:38 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-09-06 22:17:38 -0400 |
commit | f146ede613f0095a12b2fd0f756bae63b167abe2 (patch) | |
tree | 5ae5901af95318e6d016001d3d7384f61d625d94 /out.c | |
parent | 7097749bf41739feffbb7f6da20b2b951f73aa9d (diff) |
started block return values
Diffstat (limited to 'out.c')
-rw-r--r-- | out.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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) { |