[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Brain cramp converting a hex value to decimal



Thanks, I'll try it.

On Sun, Sep 14, 2008 at 12:45 PM, DJ Delorie <dj@xxxxxxxxxxx> wrote:

> It is an integer, i_temp, who's value is 0x004F.

int i, i_temp;
char buf[20];
sprintf (buf, "%d", i_temp);
for (i=0; buf[i]; i++)
 lcd_do_character (buf[i]);


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user