Make fopenmalloc() capable of returning length as well as string.