#include "lib5.h" struct xy { int x, y; }; struct xy foo(int x, int y) { struct xy r = { x, y }; return r; } void show_xy(struct xy *a) { show_str("["); show_int(a->x); show_str(", "); show_int(a->y); show_str("]"); } int main(int ac, char **av) { int x = opt_int("-x", ac, av, 0); int y = opt_int("-y", ac, av, 0); struct xy a = foo(x, y); show_xy(&a); show_nl(); return 0; }