atof

Autres langues

Langue: ko

Version: March 29, 1993 (fedora - 25/11/07)

Section: 3 (Bibliothèques de fonctions)

이름

atof - 문자열을 double로 변환

사용법

 #include <stdlib.h>
 
 double atof(const char *nptr);
 

설명

atof() 함수는 nptr로 지정된 스트링의 최초 분할을 double로 변환한다.
strtod(nptr, (char **)NULL);

와 같은 효과를 발휘한다. atof()가 에러를 발견했을 경우만.

반환값

변환된 값.

호환

SVID 3, POSIX, BSD 4.3, ISO 9899

관련 항목

atoi(3), atol(3), strtod(3), strtol(3), strtoul(3)