This is Webservice SDK for mbed. LPCXpresso1769/LPC1768/FRDM-K64F/LPC4088

Fork of libMiMic by Ryo Iizuka

Revision:
13:a71705c5e6fd
Parent:
12:efe841863fc8
Child:
48:00d211aac2ec
--- a/core/NyLPC_stdlib.c	Sat Apr 20 05:03:57 2013 +0000
+++ b/core/NyLPC_stdlib.c	Sun Apr 21 01:21:41 2013 +0000
@@ -119,26 +119,37 @@
 
 
 
-
 /**
  * same as itoa
  */
 void NyLPC_itoa(int i_n,char* o_out,int i_digit)
 {
-     int i, sign;
+     int i, sign,v;
      if ((sign = i_n) < 0){
          i_n = -i_n;
      }
      i = 0;
      do{
-         o_out[i++] = i_n % 10 + '0';
-     }while ((i_n /= 10) > 0);
+         v=i_n % i_digit;
+         o_out[i++] = v<10?(v+'0'):(v+'a'-10);
+     }while ((i_n /= i_digit) > 0);
      if (sign < 0){
          o_out[i++] = '-';
      }
      o_out[i] = '\0';
      NyLPC_reverse(o_out);
 }
+void NyLPC_uitoa(int i_n,char* o_out,unsigned int i_digit)
+{
+     int i = 0;
+     int v;
+     do{
+         v=i_n % i_digit;
+         o_out[i++] = v<10?(v+'0'):(v+'a'-10);
+     }while ((i_n /= i_digit) > 0);
+     o_out[i] = '\0';
+     NyLPC_reverse(o_out);
+}
 
 void NyLPC_reverse(char* s)
 {