Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
函数的意外行为atoi()。它在我的代码的某些部分工作并在其他部分返回 0,我在应用程序的不同部分使用以下代码来查找错误。
atoi()
MPLAB X IDE V5.4、XC16 v1.61
uint8_t result = 0; char test[] = {"33"}; result = atoi(test);