![background image](http://html.mh-extra.com/html/conrad/c-control-pro-mega-series/c-control-pro-mega-series_manual_2654183197.webp)
188
Libraries
© 2008 Conrad Electronic
6.17.9 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
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
integer number
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.
6.17.10 Str_WriteWord
String Functions
Syntax
void Str_WriteWord(word n,byte base,char text[],word offset,byte
minwidth);
Sub Str_WriteWord(n As Word,base As Byte,ByRef text As Char,offset As
Word, minwidth As Byte)
Description
The word n is converted to an ASCII string. 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. If the resulting string is smaller than minwidth the beginning of the string
gets filled with zeros "0".
The base of the numbering system can be given in the base parameter. If you set base to 2, you will get a
string with binary digits. A base of 8 produces an octal string, and a base of 16 a hexadecimal string. If the
base is set to a number greater than 16, more characters of the alphabet are used. E.g. a base of 18
produces a string with the digits '0'-'9' and 'A'-'H'.
Parameter
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: ......