atol
函數原型:long atol(const char *string);
參數: 要轉換的字串。
所需標頭檔: stdlib.h
功能:將字串轉換為長整數。
返回值:返回轉換後的結果值,如果輸入不能轉換成對應類型的值,返回值為0。
1234567890 1234 1234567890 0