implement the 'm' (malloc) modifier for scanf