tail head cat sleep
QR code linking to this page

manページ  — ATOL

名称

atol – ASCII 文字列を長整数に変換する

内容

ライブラリ

Standard C Library (libc, -lc)

書式

#include <stdlib.h>

long
atol(const char *nptr);

解説

atol() 関数は、 nptr が指す文字列の先頭部分を long integer 表現に変換します。

これは次と同等です。

strtol(nptr, (char **)NULL, 10);

関連項目

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

規格

atol() 関数は ISO/IEC 9899:1990 ("ISO C90") に適合しています。

ATOL (3) June 4, 1993

tail head cat sleep
QR code linking to this page


このマニュアルページサービスについてのご意見は Ben Bullock にお知らせください。 Privacy policy.

“ Our grievance is not just against Unix itself, but against the cult of Unix zealots who defend and nurture it. They take the heat, disease, and pestilence as givens, and, as ancient shamans did, display their wounds, some self-inflicted, as proof of their power and wizardry. We aim, through bluntness and humor, to show them that they pray to a tin god, and that science, not religion, is the path to useful and friendly technology. ”
— The Unix Haters' handbook