當(dāng)intval函數(shù)接受到字符串型參數(shù)是調(diào)用convert_to_long_base()處理,接下來調(diào)用Z_LVAL_P(op) = strtol(strval, NULL, base);通過strtol函數(shù)來處理參數(shù)。 函數(shù)原型如下: long int strtol(const char *nptr,char **endptr,int base); 這個函數(shù)會將參數(shù)nptr字符串根據(jù)參數(shù)base來轉(zhuǎn)換成長整型數(shù),參數(shù)base范圍從2至...
www.dbjr.com.cn/hack/417...html 2025-5-27