strncmp_P AVRGCC

Dukai Zoltan daemon82 at mailbox.hu
Sat Jun 26 16:17:38 CEST 2004


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