strlen function to empty char* causes reboot
Posted: Wed Aug 07, 2019 3:31 pm
Whether right or wrong, this code is handled by Arduino UNO and Arduino MKR without crashing. It tells me strlen = 1.
With my ESP32 it causes continuous reboot.
With my ESP32 it causes continuous reboot.
Code: Select all
char *thisCharPntr;
void setup() {
Serial.begin(115200);
// put your setup code here, to run once:
Serial.print("Char length: ");
Serial.println(strlen(thisCharPntr));
}
void loop() {
// put your main code here, to run repeatedly:
}