[PD] atoi should be atol (L)