I have to inizialize a char array [DIM_MAX] to a null value in order to pass it to another function. Before passing it to this function, I am trying to print it as a local variable in order to understand if it assumes a value of zero, but unfortunately this does not happen.
I did:
static char bufferW[DIM_WRITE];
Then I wanted to inizialize this buffer to zero. Is correct to do this?
*bufferW="NULL";
I have to pass it to the function
write(0x02900800, bufferW, DIM_WRITE);
but bufferW isn't passed as a NULL char, it is the last value assumed. Where am I doing wrong? I tried:
bufferW==NULL;
is the way? I am sorry for the basic question. Any help will be appreciated
kind regards