Jyothi@Pic
New Member
Hi,
I have attached my code for correction since i am getting warning as
Warning [2054] suspicious pointer conversion
I have attached my code for correction since i am getting warning as
Warning [2054] suspicious pointer conversion
Code:
#include"string.h" // is included
void main()
{
printlcd1(" Hello world ");
}
void printlcd1(unsigned char *str)
{
unsigned char len,i;//RCIE=0;
len = strlen(str);
set_add(0x80); //sets display position in the first line
for(i=0;i<len;i++)
{
data_lcd(*str); //displays the character on LCD
str++;
}
//return;
}[CODE]
Above is the code when i build i am getting warning as
Warning [2054] suspicious pointer conversion
wat corrections is to be made
kindly reply for this