stStrNCpy Function
Declaration:
PSTR stStrNCpy(
  PSTR dest,
  const PSTR src,
  SIZE maxlen
);
Parameters:
dest

Address of the destination string.

src

Address of the source string.

maxlen

Maximum number of bytes to copy.

Return value:

Address of the destination string, containing the copied data.

Description:

This function copies a maximum of maxlen characters from the source string into the destination string, overwriting the previous string.

If functions for basic string operations are inactive in the alternative C library (by setting ST_USE_STRING_CLIB to 1), a macro named stStrNCpy will be created that calls the strncpy function from the standard C library.

Version:1.0
Header file:ST_CLIB.h (include ST_API.h)
See also: PSTR, SIZE, ST_USE_STRING_CLIB
SpaceShadow documentation