2 Replies Latest reply on Nov 4, 2014 8:22 PM by aussiesusan

    Convert int to char

    cassio.lopez

      Hello
      I need to send a binary value through ethernet, i´m using a library  2ForLife_W5100 in PSOC5LP.
      My problem is that i need to convert a binary value to char to send. I´m trying to use this, but isn´t work:

      itoa(exibe_AZ,total_AZ, 2);

      The declaration:

          uint16 total_AZ = 0;
          uint16 total_EL = 0;
          char exibe_AZ[16];
          char exibe_EL[16];

      Obs: I included stdlib.h