StrLenA (FUN)

FUNCTION StrLenA : DINT

This function determines the length of a string by searching for a terminating zero character. The function will do its work either with native IEC-Strings or with strings coming from external functions.

InOut:

Scope

Name

Type

Comment

Return

StrLenA

DINT

  • -1 if the given pointer to String is NULL

  • otherwise the length of the given string

Input

pstData

CharBufferPtr

Pointer to the string to check