strncmp_P AVRGCC
Fuzesi Arnold
arno at externet.hu
Sat Jun 26 17:23:59 CEST 2004
Dehogynincs deklaralva!
Nezd meg a PSTR makrot hogy muxik.
Abban biz van egy valtozodeklaracio...
Arnold
----- Original Message -----
From: "Dukai Zoltan" <daemon82 at mailbox.hu>
To: <elektro at tesla.hu>
Sent: Saturday, June 26, 2004 4:17 PM
Subject: Re: strncmp_P AVRGCC
> Nagy Endre wrote:
>
> >>Meg tudna valaki mondani hogy mit akar az jelenteni hogy
> >>main.c:59: warning: passing arg 1 of `strncmp_P' discards qualifiers
> >>from pointer target type
> >>
> >>Kodreszlet:
> >>if(!(strncmp_P( &receive[i], PSTR("RING"),4)))
> >
> >
> > Valoszinuleg azt, hogy a const tipusmodositot nem veszi figyelembe az
> > strncmp_P.
>
> De hiszen egy valtozom sincs deklaralva mint const.
> Vagy a progmem miatt? ott elvileg ott a __PROGMEM__ attributum a
> progmem.h-ban pont ezert amit irsz. Nem?
>
>
>
>
More information about the Elektro
mailing list