Rikr09
Member level 3
- Joined
- Feb 14, 2013
- Messages
- 59
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,745
Hello Edaboard Friends,
Im trying to use the STRCOPY method to send many Message throw the UART of the microcontroller, but im getting the Warning message "Warning [2066] type qualifier mismatch in assignment" on MPLAB and the "Haaaaa" message is not load on mi_ficha.Nombre Buffer ... The warning is because of: strcpy(mi_ficha.Nombre,"Haaaaaa");
Thanksss for your help!
Im trying to use the STRCOPY method to send many Message throw the UART of the microcontroller, but im getting the Warning message "Warning [2066] type qualifier mismatch in assignment" on MPLAB and the "Haaaaa" message is not load on mi_ficha.Nombre Buffer ... The warning is because of: strcpy(mi_ficha.Nombre,"Haaaaaa");
Code:
struct ficha{
char Nombre[20];
};
struct ficha mi_ficha;
strcpy(mi_ficha.Nombre,"Haaaaaa");
for(i=0; i<=strlen(mi_ficha.Nombre); i++){
imprimirCaracterU1(mi_ficha.Nombre[i]);
}
Thanksss for your help!