- Bonus track: use snprintf and vsnprintf instead of sprintf and vsprintf because the latter are deprecated.