Hello people, I am trying to convert an array of 2 characters into integer 16 bits usign atoi function but when I debug my program with MPLAB the int value is always 0. Is there any problem using this conversion functions? PD; The compiler is XC8 => PIC18F4520. Thanks!
Gast
#3835011
Hi, What is in your char array? Charakter or a number. Because atoi() search if there a number in your char[] (string). Is ist true you become the number. Is it false u become the 0. I hope it help you. Sry for my bad english.
Antwort schreiben
Bitte melde dich an, um einen Beitrag zu schreiben.