Fix import and possible memory leak
Fix norme
Old putnbr was not ANSI C compliant (-Werror=sign-compare)