📜  示例用法 g_snprintf - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:55.098000             🧑  作者: Mango

代码示例1
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.