Hi Marcel,
du musst mal unter der Hilfe von Code Vision nach sprintf suchen. Dort
wird die Syntax erklärt. Du hast offentsichtlich zu viele Parameter
übergeben. sprintf braucht nur 2.
Ich hoffe, das hat geholfen
Gruß Oliver
void sprintf(char *str, char flash *fmtstr [ , arg1, arg2, ...])
this function is identical to printf except that the formatted text is
placed in the null terminated character string str.
In order to reduce program code size, there is the Project|Configure|C
Compiler|Code Generation|(s)printf features option.
It allows linking different versions of the printf and sprintf
functions, with only the features that are really required by the
program.
The following (s)printf features are available:
· int - the following conversion type characters are supported: 'c',
's', 'p', 'i', 'd', 'u', 'x', 'X', '%', no width or precision specifiers
are supported, only the '+' and ' ' flags are supported, no input size
modifiers are supported
· int, width - the following conversion type characters are supported:
'c', 's', 'p', 'i', 'd', 'u', 'x', 'X', '%', the width specifier is
supported, the precision specifier is not supported, only the '+', '-',
'0' and ' ' flags are supported, no input size modifiers are supported
· long, width - the following conversion type characters are supported:
'c', 's', 'p', 'i', 'd', 'u', 'x', 'X', '%' the width specifier is
supported, the precision specifier is not supported, only the '+', '-',
'0' and ' ' flags are supported, only the 'l' input size modifier is
supported
· long, width, precision - the following conversion type characters are
supported: 'c', 's', 'p', 'i', 'd', 'u', 'x', 'X', '%', the width and
precision specifiers are supported, only the '+', '-', '0' and ' ' flags
are supported, only the 'l' input size modifier is supported
· float, width, precision - the following conversion type characters
are supported: 'c', 's', 'p', 'i', 'd', 'u', 'e', 'E', 'f', 'x', 'X',
'%', the width and precision specifiers are supported, only the '+',
'-', '0' and ' ' flags are supported, only the 'l' input size modifier
is supported.
The more features are selected, the larger is the code size generated
for the printf and sprintf functions.