Skip to main content
Open topic with navigation CAPL Functions » General » Function Overview » strncat

strncat

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

Description

This function appends src to dest. len indicates the maximum length of the composite string. The function ensures that there is a terminating “\0”. Thus, a maximum of len - strlen(dest) - 1 characters are copied. Note: Unlike the strncat C-function, rather than the number of characters to be appended, len indicates the maximum length of the composite string, including the terminating “\0”.

Parameters

  • dest: Target string to which characters are appended.
  • src: Appended string.
  • len: Maximum length of composite string including terminating ‘\0’.

Return Values

Example

Related Functions: strlenstrncmpstrncpy