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);