write a program that will have a function that takes the string and converts it to an integer number c program code example
Example: string to int c
atoi(str) is unsafe
This is the prefered method:
(int)strtol(str, (char **)NULL, 10)
atoi(str) is unsafe
This is the prefered method:
(int)strtol(str, (char **)NULL, 10)