> in the first case only a will be a pointer and in the second case both c and d will be a pointer.that's what it means.
Like I said, easier to figure out.
By the way, you're wrong.
a and c a...
Type: Posts; User: Salem
> in the first case only a will be a pointer and in the second case both c and d will be a pointer.that's what it means.
Like I said, easier to figure out.
By the way, you're wrong.
a and c a...
> and i would like to know one more thing.is there any difference between char* a and char *a?
Semantically, no.
But from a style point of view,
char *a, b;
char* c, d;
you have a...
So is strcpy() a blessed function that knows about the weird architecture, and can presumably cope with copying a string declared as a constant in one address space to a variable in another address...
> It explained that "CCS doesn't permit pointers to constant strings. You have to copy the string to a ram buffer first."
WTF PoS compiler is this!?
The compiler is very close to being 100% ANSI...
What is in pic.h (post the contents) ?
If there is some incomplete declaration at the end of that file (I assume it's yours, because you use "" to include it, and not <>), then that will spill...
I've no idea.
Apart from all the PIC stuff, the code itself looks valid enough, and I can compile that part of it without any trouble.
Try posting your error messages.
From the look of things (assuming your undeclared gsm variable is a FILE*), that your printf calls should be fprintf
Also, main returns int, not void