I have searched the documentation for a good while and not been able to find the answer to the above. since similar may come up again a link to the answer, may be more helpful than just the answer.
in advance, thanx,
Erik
sprintf()?
It prints to a string - string print formatted. So obviously, the output goes to the buffer you supply as parameter.
Are you sure you don't mean the reverse - where do the input come from?
I hsve, due to doing '51s for ages where using things like sprintf are "space excessive", forgotten much in this area - it's coming back.
thanx,
So you did mean printf() and not sprintf()?
Then it is up to you to supply the function that maps where "serial console" data should be sent.
nope, I ment sprintf(), my rustiness made me think of printf() - it is all coming back :)
A useful online reference to the Standard 'C' library functions:
www.cplusplus.com/.../ (don't worry about the "plusplus" - it is the 'C' library)
And a useful online 'C' textbook:
publications.gbdirect.co.uk/.../
(don't worry about the "plusplus" - it is the 'C' library)
Have you noted that very few people are capable of writing 'C' any more, it automatically comes out as 'C++'
The last 3 places I have consulted have requested 'C++' although the code (current and added) was pure 'C'
Actually, for at least a decade now, what you typically get is talk about a non-existant language supposedly called "C/C++". I blame that on a whole slew of books that mashed the two together like that, both in the title and in the text.