SysLibStr E
SysLibStr E
lib
to compare strings:
• SysStrCmp
• SysStrCmpI
• SysStrCmpN
• SysStrCmpNI
to copy strings:
• SysStrCpy
• SysStrLen
SysStrCmp
This function of type DINT compares lexicographically two strings and returns one of the following values:
SysStrCmpI
This function of type DINT checks whether two strings are identical and returns one of the following
values:
SysStrCmpN
This function of type DINT compares the size of two strings, whereby a defined number of characters
counted from the beginning of the string will be considered.
SysStrCmpNI
This function of type DINT checks whether a defined number of characters of two strings (starting at the
beginning of the string) are identical. One of the following return values will show the result:
SysStrCpy
This function of type DWORD copies one string (Str1) to another (Str2). It will return a pointer to the target
string Str2.
Input-Variable Data type Description
sString1 STRING String, to which you want to copy (target)
sString2 STRING String, which should be copied (source)
SysStrLen
This function of type DINT acquires the length of a string. It will return the number of characters, excluding
the "terminal NULL".
Input-Variable Data type Description
sString1 STRING String, the length of which should be checked