F_BA_PostfixStr2

F_BA_PostfixStr2 1:

The function F_BA_PostfixStr2 appends a postfix to the end of a string. If the string is already filled, a separator is appended first.

Syntax

FUNCTION F_BA_PostfixStr2
VAR_INPUT
  sSrcString : POINTER TO STRING;
  sSrcSize   : UDINT;
  sPostfix   : POINTER TO STRING;
  sSeparator : POINTER TO STRING;
END_VAR

F_BA_PostfixStr2 2: Inputs

Name

Type

Description

sSrcString

POINTER TO STRING

String that is being appended to.

sSrcSize

UDINT

Size of the destination buffer.

sPostfix

POINTER TO STRING

Postfix, which is appended.

sSeparator

POINTER TO STRING

Delimiter between content and postfix.