PxStrnlen()

Get string length with fixed length.

APPLIES TO

8.2.0

SYNOPSIS
PxSize_t PxStrnlen(char const *s, PxSize_t n);
ARGUMENTS
s

String which length is counted

n

Maximal count of characters in strings to count

RETURN VALUES
  • length of string s

DESCRIPTION

PxStrnlen returns the length of the null terminated string starting at s. The terminating null character is not counted.

USAGE
#include "pxdef.h"

PxSize_t len = PxStrnlen(str, n);