01-11-2007 02:56 PM
01-11-2007 03:06 PM
01-11-2007 03:08 PM
Hello
You should try the following:
void main(void)
{
int error;
char str[30]="string reference"; // make sure 30 char is always enough
error = PassStringReference(str);
...
}
Regards,
01-11-2007 03:35 PM
Your suggestion strcpy is working very well. However, I did try with previous codes with 2 variable strings (for easy showing my problem: I described with constant strings) and it did not work???
Many thanks
01-11-2007 03:41 PM
I did try but it is the same result, but the other suggest method is working well
Thanks anyway