snprintf to for