avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] strtoul is not working?


From: Klaus Rudolph
Subject: [avr-gcc-list] strtoul is not working?
Date: Sun, 28 Oct 2001 16:43:23 +0100

Hi all,

i tryed:

uint16_t x;
char string[20];

strcpy_P(string, PSTR("12ac"));
x=(uint16_t)strtoul(string, 0, 16); 

after all different numbers tested i got allways 0xffff for x.

Any idea?


Thank
Klaus



reply via email to

[Prev in Thread] Current Thread [Next in Thread]