add Sprintf from core-lib, rename to Printf