snprintf is fine as long as this is in an example.