Implementation of the C function scanf(3)
