Develop
2003.04.23 10:54
[c] 신기한 atoi함수(www.game79.net)
조회 수 7274 댓글 0
#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));
}
-
[c] 가위 바위 보 서버, 클라이언트 소스코드
-
[c] fork() 시스템 콜 사용 방법.
-
[c] 소켓 프로그래밍 요약..
-
[c] 소켓주소 구조체에 대해..
-
[c] 소켓의 세가지 동작모드
-
[c] 컴파일러 DFA구현^^ 입력 받아 실행
-
[c] OpenGL 시어핀스키 가스킷(p.73 - 첫시간)
-
[c] 시어핀스키 가스킷..(p.582, A.2 - 두번째)
-
[c] 약수/최대공약수/완전수 알고리즘
-
[c] 프로그래밍의 전반적인 설명 ppt
-
[jsp] HelloServlet 출력문
-
[jsp] Get방식, Post방식 전송 예제..