📅  最后修改于: 2022-03-11 14:59:55.098000             🧑  作者: Mango
char string[2]; //Number of digits + an extra space for the null character.
int score = 1;
g_snprintf(string, 2, "%i", score); // Overwrites string with the content of score.