include "test.idp" cout << functionDEFINITION << "atoi" << endl; real t; cout << typeDEFINITION << "int" << endl; string stringnb = "42"; t = clock(); int intnb = atoi(stringnb); t = clock() - t; cout << timeELAPSED << t << endl; test(intnb == 42); string stringnb2 = "42abc"; t = clock(); int intnb2 = atoi(stringnb2); t = clock() - t; cout << timeELAPSED << t << endl; test(intnb2 == 42); string stringnb3 = "abc42"; t = clock(); int intnb3 = atoi(stringnb3); t = clock() - t; cout << timeELAPSED << t << endl; test(intnb3 == 0);