Instructions

352Libraries
© 2013 Conrad Electronic
is returned.
Parameter
source string that is searched
search substring that is looked for
Return Parameter
position of the found substring
-1 else
5.24.12 Str_WriteFloat
String Functions
Syntax
void Str_WriteFloat(float n, byte decimal, char text[], word offset);
Sub Str_WriteFloat(n As Single, decimal As Byte, ByRef text As Char,
offset As Word)
Description
The floating point number n is converted to an ASCII string with decimal number of decimal digits after the
period. The result is stored in the string text with an offset of offset. The offset parameter is used to change
a string after a specified number (offset) of characters and leave the beginning of the string intact.
Parameter
n float number
decimal number of decimal digit after the period
text pointer to destination string
offset offset that is applied to the position where the string is copied
If offset has the value STR_APPEND (ffff Hex) then the length of the destination string is assumed as
offset. In this case the source string is copied behind the destination string.
5.24.13 Str_WriteInt
String Functions
Syntax
void Str_WriteInt(int n, char text[], word offset);
Sub Str_WriteInt(n As Integer, ByRef text As Char, offset As Word)
Description
The integer number n is converted to a signed ASCII string. The result is stored in the string text with an off-