I'm sorry, everyone. My C function is buggy because I forgot that sscanf returned how many variables to which it assigned values. So sscanf makes the computer fill the "integers" array with ones.