Answers for "c str add int"

C
19

string to int c

atoi(str) is unsafe

This is the prefered method:
(int)strtol(str, (char **)NULL, 10)
Posted by: Guest on May-08-2020
0

c str add int

char buf[12];
snprintf(buf, 12, "FPS: %d", framesCount);
Posted by: Guest on December-29-2020

Code answers related to "C"

Browse Popular Code Answers by Language