Funkce a pointery - PICL

Michal HW michalgregor@centrum.cz
Středa Leden 12 14:58:22 CET 2005


Mam pole:
volatile unsigned char Pult_Bufer[21];

a funkci
unsigned char Znak_Cislo(unsigned char *p_i);

Potrebuji dostat do funkce ukazatel na Pult_Bufer[5]:
    Pom_ISR=Pom_ISR+Znak_Cislo(&Pult_Bufer[10]);


Coz se kompilatoru moc nelibi - hlasi:
Warning[000] C:\A\MPLAB\ASEMBLER\SGDR_MAT\SGDR_MAT.C 325 : illegal
conversion between pointer types

 Jak to mam udelat korektne?

Michal





Další informace o konferenci Hw-list