diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-25 15:33:13 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-25 15:33:13 -0500 |
commit | 9df83e399d7691bb20cc9d42ddb70619908aeeca (patch) | |
tree | 1a31320443ff024d14e401656f4f90ca747b7e41 /test.c | |
parent | 27acf3754529988de9d43ba0abb8e5b3bbb3da31 (diff) |
passing structs to foreign functions
Diffstat (limited to 'test.c')
-rw-r--r-- | test.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -0,0 +1,7 @@ +typedef struct Point { + long x, y; +} Point; + +long p(Point x) { + return x.x + x.y; +} |