/* * struct demo */ #include #include "geom.h" int main(void) { struct triangle p; p.a = (struct point) {0., 0.}; p.b = (struct point) {3., 0.}; p.c = (struct point) {0., 4.}; printf("Area: %f\n", area(p)); return 0; }