int incr(int i) { int old = i; i += 1; if (i < old) return 1; return 0; }
EDIT: Updated to a better example.
EDIT: Updated to a better example.