Instructions

351 C-Control Pro IDE
© 2013 Conrad Electronic
Description
The value of a string representing an integer number is returned. The number is recognized, even if
there or other characters after the number.
Parameter
str pointer to string
Return Parameter
integer value of string
5.24.10 Str_ReadNum
String Functions
Syntax
word Str_ReadNum(char str[], byte base);
Sub Str_ReadNum(ByRef str As Char, base As Byte) As Word
Description
The value of a string representing an unsigned number is returned. The number is recognized, even if
there or other characters after the number. The base parameter is the base of the numeric value.
E.g. to read a hexadecimal number, a base of 16 is to apply.
Parameter
str pointer to string
base base of converted number
Return Parameter
numeric value of string
5.24.11 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