Function stdio_strnlen

Function Documentation

size_t stdio_strnlen(const char *const s, size_t maxsize)

Get the length of a string, limited by maxsize.

Parameters:
  • s – The string

  • maxsize – The maximum string length to consider

Returns:

The length of the string.