13.2.10 Char & String
The mode of operation of the following functions essentially corresponds to that of the standard ANSI-C
implementation:
native strlen(const string[]);
Supplies the length of the string (without '\0')
Parameter
Explanation
string
Character string for which the length has to be determined
Explanation
Return value
Number of characters without the final '\0'
native sprintf(dest[], maxlength=sizeof dest, const format[], {Float,Fixed,_}:...);
Saves the transferred format string in the array dest. The mode of operation of the functions
corresponds to that of the "snprintf" function of the standard ANSI-C implementation.
Parameter
Explanation
dest
Array to store the formatted result
maxlength
Maximum number of characters that the array dest can store
format
The format character string to be used
Explanation
Return value
l
-1 in the event of a fault
l
Number of characters that would have been written if the array dest had
been long enough (without '\0').
The array dest is always assigned a final zero. The length of the array dest
cannot be exceeded.
native strcpy(dest[], const source[], maxlength=sizeof dest);
Copies the source character string to the array dest (including '\0').
Parameter
Explanation
dest
Array to store the character string that should be copied
source
Character string that should be copied
maxlength
Size (in Cells) of the array to store the string to be copied - OPTIONAL
Explanation
Return value
Number of copied characters
172
Rev. 05
Summary of Contents for myDatalogEASY V3
Page 2: ......
Page 13: ...Chapter 2 Declaration of conformity Chapter 2 Declaration of conformity Rev 05 13 ...
Page 14: ......
Page 42: ......
Page 76: ......
Page 88: ......
Page 102: ......
Page 110: ......
Page 116: ......
Page 234: ......
Page 244: ......
Page 252: ......
Page 254: ......
Page 266: ......
Page 276: ......