-
-
Notifications
You must be signed in to change notification settings - Fork 91
Closed
Labels
conclusion: resolvedIssue was resolvedIssue was resolvedtopic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
It appears that several C functions, e.g. strnlen()
and strdup()
, defined in the AVR based cores are not available within the Renesas core.
Both of the following statements work on an Arduino Uno WiFi Rev2 board but the second statement does not work on the new Arduino Uno R4 WiFi board.
Serial.print("strlen = "); Serial.println(strlen(string));
Serial.print("strnlen = "); Serial.println(strnlen(string, 10)); // error: 'strnlen' was not declared in this scope
I came across this issue by trying to compile a sketch that uses the PubSubClient library.
Please see The strnlen() C Function Is Not Available topic within the Arduino Forum for more information.
Metadata
Metadata
Assignees
Labels
conclusion: resolvedIssue was resolvedIssue was resolvedtopic: codeRelated to content of the project itselfRelated to content of the project itselftype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project