F_BA_RemoveEqualChar2L

The function F_BA_RemoveEqualChar2L skips all matching characters at the beginning of two strings and returns a pointer to the remainder of sString.
Syntax
FUNCTION F_BA_RemoveEqualChar2L : BOOL
VAR_INPUT
sString : POINTER TO STRING;
nString : UDINT := 0;
sCompare : POINTER TO STRING;
nCompare : UDINT := 0;
END_VAR
VAR_OUTPUT
sResult : POINTER TO STRING;
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
sString | POINTER TO STRING | A string whose beginning is compared. |
nString | UDINT | Length of sString. If the value is 0, it is determined automatically. |
sCompare | POINTER TO STRING | Comparison string. |
nCompare | UDINT | Length of sCompare. If the value is 0, it is determined automatically. |
Outputs
Name | Type | Description |
|---|---|---|
sResult | POINTER TO STRING | The remaining string starting from the first differing character. |