use std99
API renaming