1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include "liba.h" static int val; void liba_add(int x) { val += x; } void liba_sub(int x) { val -= x; } int liba_get(void) { return val; }