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

Maximal number of the copied bytes.

Return value:

Address of the destination string, with copied data.

Description:

Function copies maximally maxlen characters from source string in to destination string, with overwriting previous string.

If functions for basic operations on string are inactive for alternative C library by setting ST_USE_STRING_CLIB for 1, it will be created stStrNCpy macro that will call strncpy function from 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