Hi ,
Using or not using atol can very much matter.
atol converts a string in to a long ( a-to-l means ascii to long ). So, when you are assigning a string value ( means something stored in a char array or char* ) to this veriable atol is required.
Cheers