표준 함수중에 strtol 이라는 함수가 있습니다. char *을 받아서 long형으로 되돌려 줍니다. int value = (int)strtol(num, NULL, 바꾸려는 문자열의 진수);
이렇게 써보심이...