aboutsummaryrefslogtreecommitdiffhomepage
path: root/test2.c
diff options
context:
space:
mode:
Diffstat (limited to 'test2.c')
-rw-r--r--test2.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/test2.c b/test2.c
deleted file mode 100644
index 7d39164..0000000
--- a/test2.c
+++ /dev/null
@@ -1,23 +0,0 @@
-typedef struct v2d { double x,y; } v2d;
-
-
-
-void addp(v2d *a, const v2d *b)
-{
- a->x += b->x;
- a->y += b->y;
-}
-
-v2d add(v2d a, v2d b)
-{
- addp(&a, &b);
- return a;
-}
-
-short s(int a, int b) {
- return a + b;
-}
-
-int i() {
- return s(1,2);
-}