Contents

Develop
2003.04.23 10:54

[c] 신기한 atoi함수(www.game79.net)

Views 7287 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
#include <stdio.h>

int myatoi(char *str){
        int result=0;
        int i=0;

        while( str[i] ){
                result = result*10 + str[i] - '0';
                i++;
        }

        return  result;
}

void main(){
        char num[10]="1234";

        printf("%d",myatoi(num));
}


?

List of Articles
No. Category Subject Author Date Views
97 Develop [c] 시간 관련 함수 설명과 예제.. file hooni 2003.04.23 11547
96 Develop [c] 문자열 처리 관련 함수들 설명 hooni 2003.04.23 8011
95 Develop [linux] 프로세스 관련 시스템콜 hooni 2003.04.23 7869
94 Develop [c] 시간 계산 하는 프로그램 소스코드 file hooni 2003.04.23 6770
93 Develop [php] 마시마로 캐릭터 방명록 file hooni 2003.04.23 8266
92 Develop [c] OpenGL 색 입방체의 회전(입체) hooni 2003.04.23 7892
» Develop [c] 신기한 atoi함수(www.game79.net) hooni 2003.04.23 7287
90 Develop [c][java] 소켓 프로그래밍(채팅 서버 C, 클라이언트 Java) file hooni 2003.04.23 7028
89 Develop [js] 점점 커지는 새창.. hooni 2003.04.23 7020
88 Develop [c] OpenGL 마우스 이벤트 hooni 2003.04.23 8753
87 Develop [js] 사라지는 브라우저 hooni 2003.04.23 6877
86 Develop [js] 이벤트 핸들러(Event Handlers) hooni 2003.04.23 6748
Board Pagination Prev 1 ... 58 59 60 61 62 63 64 65 66 67 ... 71 Next
/ 71