經安全檢測,此網站為安全網站,請放心前往原始網址!

Converting string to integer C - Stack Overflow

char s[] = "45"; int num = atoi(s) ... There is strtol which is better IMO. Also I have taken a liking in strtonum , so use it if you have it (but remember it's not portable):

stackoverflow.com

網址安全性掃描由 google 提供