Skip to content

The strnlen() C Function Is Not Available  #18

@woolseyj

Description

@woolseyj

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions