must be chosen in such a way that all characters of the string fit into the character array.
Additionally some space is needed for a terminating character (decimal Zero) in order to indicate the
end of the character string.
6.17.1 Str_Comp
String Functions
Syntax
char Str_Comp(char str1[],char str2[]);
Sub Str_Comp(ByRef str1 As Char,ByRef str2 As Char) As Char
Description
Two strings are compared.
Parameter
str1 pointer to char array 1
str2 pointer to char array 2
Return Parameter
0
both strings are equal
<0 if the first string is
>0 if the first string is
Remark
The attribute
between both strings.
6.17.2 Str_Copy
String Functions
Syntax
void Str_Copy(char destination[],char source[],word offset);
Sub Str_Copy(ByRef destination As Char,ByRef source As Char,offset As
Word)
Description
The source string (source) is copied to the destination string (destination). During copying also the string
termination character of the source character string is copied.
Parameter
© 2008 Conrad Electronic
smaller
than the second
greater
than the second
smaller
or
greater
is specified for the character difference at the first point of difference
Libraries
184
Need help?
Do you have a question about the C-Control Pro Mega Series and is the answer not in the manual?
Questions and answers