User guide

52
VTB USER GUIDE
STRCAT
Appends a copy of the source string to the destination string.
Hardware All
Syntax
STRCMP(Char *Dest, Char *Source)
Parameters
Dest Pointer to destination
Source Pointer to source
Example
Used variables:
Str(30) Char
Strcpy(Str(),”My “)
StrCat(Str(),”Text”) str will contain “My Text”
STR_PRINTL
Converts an INTEGER variable to a characters STRING.
Hardware All
Syntax
STR_PRINTL(Char *Dest, Char *Format, Long Val)
Parameters
Dest Pointer to the destination string
Format String corresponding to the format to be printed
Val Any integer value or expression
Avalaible formats
###### Print a fixed number of characters 23456
###.### Force the print of decimal point 123.456
+#### Force the print of the sign +1234
#0.## Force the print of a ZERO 0.12
X#### Print in HEXADECIMAL format F1A3
B#### Print in BINARY format 1011
Example
var=12345
STR_Printl(“###.##”,var) It will be printed: “123.45”
var=2
STR_Printl (“###.##”,var) It will be printed: “ . 2”
STR_Printl (“###.00”,var) It will be printed: “ .02
STR_Printl (“##0.00”,var) It will be printed: “ 0.02”
STR_PRINTF
Converts a FLOAT variable to a characters STRING.
Hardware All
Syntax
STR_PRINTF(Char *Dest, Char *Format, Float Val)
Parameters
Dest Pointer to the destination string
Format String corresponding to the format to be printed
Val Any float value or expression