Here you can find the source of atoi(String s)
public static int atoi(String s)
//package com.java2s; //License from project: Open Source License public class Main { public static int atoi(String s) { return Integer.parseInt(s); }/* ww w. ja va2s . co m*/ }