strcmp with variables in ROM

General discussion on mikroC PRO for 8051.
Post Reply
Author
Message
patelvivekv1993
Posts: 7
Joined: 04 Oct 2013 14:27

strcmp with variables in ROM

#1 Post by patelvivekv1993 » 13 Apr 2014 09:16

i am working on a 8051 controller AT89C51..i have limited RAM so i stored variable in ROM...now when i use strcmp with it i got a message called illegal point conversion ....how to use strcmp with ROM variables???
please help me here....

Code: Select all

#include<stdio.h>
#include<string.h>
void main()
{
unsigned char GPSmessage[41],identifier[6],latitude[12],longitude[13],latitude1[12];
const unsigned char* fixedLongitudeGroup[5] = {"6016.3245,N","6016.3245,N","6016.3245,N","6016.3245,N","6016.3245,N"};code;
const unsigned char* fixedLatitudeGroup[5] = {"02458.3270,E","02458.3270,E","02458.3270,E","02458.3270,E","02458.3270,E"};code;
if(strcmp(latitude,fixedLongitudeGroup[0])==0)
{
}
}

Post Reply

Return to “mikroC PRO for 8051 General”