How to convert a string to a integer in C
Hello, guys, i am having so difficulties with a problem.
Each string has a name of a film followed by a date that corresponds to the release date of the movie
The aim is to create an array of strings of movies that are prior to a certain date..
For example
The Matrix (20xx)
Inception(20xx)
Mission Impossible(20xx)
And the objective is to put in a array of strings all movies prior to 2008
How can i do it? I was thinking using atoi but i don't know how to do it because i just want a part of the string to be converted to int and not the entire string