diff options
Diffstat (limited to 'reference/C/CONTRIB/OR_USING_C/a.4.c')
-rw-r--r-- | reference/C/CONTRIB/OR_USING_C/a.4.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/reference/C/CONTRIB/OR_USING_C/a.4.c b/reference/C/CONTRIB/OR_USING_C/a.4.c new file mode 100644 index 0000000..03d0639 --- /dev/null +++ b/reference/C/CONTRIB/OR_USING_C/a.4.c @@ -0,0 +1,18 @@ +typedef struct { + float r, i; +} complex; + +main() +{ + extern complex y_(); + complex i; + + y_(&i); +} + +x_(c) +complex *c; +{ + c->r = 1.0; + c->i = 2.0; +} |