F_BA_PrefixStr2

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
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. |