F_BA_PrefixStr2

F_BA_PrefixStr2 1:

The function F_BA_PrefixStr2 prepends a prefix to a string. If the string is already filled, a separator is inserted as well.

Syntax

FUNCTION F_BA_PrefixStr2
VAR_INPUT
  sSrcString : POINTER TO STRING;
  sSrcSize   : UDINT;
  sPrefix    : POINTER TO STRING;
  sSeparator : POINTER TO STRING;
END_VAR

F_BA_PrefixStr2 2: Inputs

Name

Type

Description

sSrcString

POINTER TO STRING

String that is being appended to.

sSrcSize

UDINT

Size of the destination buffer.

sPrefix

POINTER TO STRING

A prefix that is placed at the beginning.

sSeparator

POINTER TO STRING

Delimiter between the prefix and the content.