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.
Содержание C-Control Pro Mega Series
Страница 1: ... 2008 Conrad Electronic C Control Pro Mega Series ...
Страница 9: ...VIII Inhalt 2008 Conrad Electronic ...
Страница 10: ...Part 1 ...
Страница 17: ...Part 2 ...
Страница 23: ...Part 3 ...
Страница 41: ...32 Hardware 2008 Conrad Electronic 3 3 5 3 Component Parts Plan ...
Страница 57: ...48 Hardware 2008 Conrad Electronic 3 4 5 3 Component Parts Plan ...
Страница 58: ...Part 4 ...
Страница 91: ...82 IDE 2008 Conrad Electronic ...
Страница 92: ...Part 5 ...
Страница 135: ...126 Compiler 2008 Conrad Electronic 31 1F US 63 3F 95 5F _ 127 7F DEL ...
Страница 136: ...Part 6 ...
Страница 231: ...Part 7 ...
Страница 240: ......