I'm trying to calculate the value a string in C.
I define the string like: char cadena[100] = "Esto es un text securizado$2516"
I need to transform 2516 into an int, I'm actually trying to use atoi()
, but I don't know how to separate the string to use the function.
PS: Excuse my English, it's not my native language, I hope you understand what I want to do.