Import scanf from http://hg.pdclib.e43.eu/pdclib/raw/7d4481922905ec9a8aecf9d69336342d1a140e17/functions/stdio/scanf.c