hi
I'm using codevision AVR. in string.h lib when one of the arrays is const an error occurs.
for example i want to put a array of string from one array to another like this :
unsigned char A[11];
const unsigned char B[11]={"HELLOWORLD"};
when i use strncpy like this:
strncpy(A,B,10);
i have this error
Error:, #included from: main.c: function argument #2 of type 'flash unsigned char [11]' is incompatible with required parameter of type 'unsigned char *'
and this is the same for all of string.h lib functions.
in ARM and keil compiler i didn't had this problem but in codevision error occurs.
i know i can use for loop but is there any way to avoid this error?