
187
C-Control Pro Mega Series
© 2008 Conrad Electronic
6.17.7 Str_Substr
String Functions (Library "
String_Lib.cc
")
Syntax
int Str_SubStr(char source[],char search[]);
Sub Str_SubStr(ByRef source As Char,ByRef search As Char) As Integer
Description
A substring search is searched inside string source. If the substring is found, the position of the substring
is returned.
Parameter
source string that is searched
search substring that is looked for
Return Parameter
position of the found substring
-1 else
6.17.8 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 (
0xffff
) then the length of the destination string is assumed as
offset. In this case the source string is copied behind the destination string.
Summary of Contents for C-Control Pro Mega Series
Page 1: ... 2008 Conrad Electronic C Control Pro Mega Series ...
Page 9: ...VIII Inhalt 2008 Conrad Electronic ...
Page 10: ...Part 1 ...
Page 17: ...Part 2 ...
Page 23: ...Part 3 ...
Page 41: ...32 Hardware 2008 Conrad Electronic 3 3 5 3 Component Parts Plan ...
Page 57: ...48 Hardware 2008 Conrad Electronic 3 4 5 3 Component Parts Plan ...
Page 58: ...Part 4 ...
Page 91: ...82 IDE 2008 Conrad Electronic ...
Page 92: ...Part 5 ...
Page 135: ...126 Compiler 2008 Conrad Electronic 31 1F US 63 3F 95 5F _ 127 7F DEL ...
Page 136: ...Part 6 ...
Page 231: ...Part 7 ...
Page 240: ......