StuSprintf (FUN)

FUNCTION StuSprintf : INT

Does a sprintf for the given format string and the given variable. Will not return NULL!

InOut:

Scope

Name

Type

Comment

Return

StuSprintf

INT

Input

pstFormat

POINTER TO STRING

the formatstring

pVarAdr

POINTER TO DWORD

the address of the variable that shall be printed

udiVarType

__SYSTEM.TYPE_CLASS

the type of the variable as a __SYSTEM.TYPE_CLASS value

pBuffer

POINTER TO BYTE

the buffer where the text is to be printed

dwBufferSize

UDINT

the size of the buffer in bytes