📜  c 将字符串转换为 size_t - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:34.185000             🧑  作者: Mango

代码示例1
char string[] = "1234"; // The string you want to convert to size_t.

size_t i;
sscanf(string, "%zu", &i);

// i == 1234