Hisworld.tistory.com
The hisWorld
(140)
hisworld_new
(0)
hisOld
(138)
Android
(7)
Computer Vision
(18)
JAVA
(4)
C/C++
(26)
열혈강의 C
(32)
TCP/IP socket
(12)
WinAPI
(16)
System Programming
(0)
etc
(23)
Plan
(0)
hisWorld
(0)
hiStory
(0)
hiStudy
(0)
hiSnap
(0)
홈
태그
미디어로그
위치로그
방명록
Windows Live Messenger
winapi
Join C
대학생 공모전
The Turing test page
훈스닷넷
C/C++ Reference
WIKI
/
/
블로그 내 검색
custom
custom atoi()
2008.04.19
custom atoi()
URUZ-7
2008. 4. 19. 18:45
2008. 4. 19. 18:45
이전
다음
0
1
int fn_atoi(char *ch); int main(void) { char *ch = "1234"; int rst = 0; rst = fn_atoi(ch); printf("%d\n",rst); } int fn_atoi(char *ch) { int i; int size = strlen(ch); int rst_int = 0; for(i=0; i<size; i++) { rst_int += ( (int)ch[i]-48 ) * (int)pow(10,size-i-1); } return rst_int; }
공유하기
게시글 관리
Hisworld.tistory.com
PREV
이전
1
NEXT
다음
+ Recent posts
Powered by
Tistory
, Designed by
wallel
Rss Feed
and
Twitter
,
Facebook
,
Youtube
,
Google+
티스토리툴바