atoi
atoi (ASCII to Integer) は、<stdlib.h>
で
概要
int
"123abc"
を123
を"-5"
なら-5
を"abc"
や""
(0
を
int
のint
でerrno
をatoi
の
(int)strtol(s, NULL, 10)
と
形式
#include <stdlib.h>
int atoi(const char *nptr);
脚注
注釈
出典
関連 項目
外部 リンク
atoi(3)
– JM Project Linux Library Functions マニュアル- atoi, atol, atoll - cppreference.com