1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
short v = -1; typedef struct { short network; } atype; void f () { static atype config; atype *cp; short net; cp = &config; cp->network = (v == -1) ? 100 : v; net = cp->network; }