PxStrncpy_Term()

Copy a string with fixed length.

APPLIES TO

8.2.0

SYNOPSIS
PxChar_t* PxStrncp_Termy(char *d, char const *s, PxSize_t n);
ARGUMENTS
d

Address to copy the string to

s

Address to copy the string from

n

Maximal count of characters in strings to copy

RETURN VALUES
  • Pointer to destination

DESCRIPTION

PxStrncpy_Term copies at most "n-1" characters. n must not be 0.

USAGE
#include "pxdef.h"

PxStrncpy_Term(d, s, len);