I have the following code...
Code: Select all
void writeStr(char message[]){
for(int x = 0; x<sizeof(message)-1; x++){
txByte(TXD, (int)message[x]);
}
}
Why is this, and how to fix it?
Thanks,
John
Code: Select all
void writeStr(char message[]){
for(int x = 0; x<sizeof(message)-1; x++){
txByte(TXD, (int)message[x]);
}
}
Code: Select all
void writeStr(char message[],int arr_size) {
....