This is still pretty much code.

Here is a fast guess: pan_setdigits requires a pointer to a var as its last parameter but you passed a var instead.


Always learn from history, to be sure you make the same mistakes again...