El Viernes, 13 de Abril de 2007, Simon Baxter escribió:
One more thing - how do I convert a %d variable to a %s string first?
My 'txt' variable is currently an integer.
Strike that - works a treat:
snip
void cRedRemote::Tune(int channel)
{
char buf[10];
El Viernes, 13 de Abril de 2007, Simon Baxter escribió:
Hi.
I'm modifying a non-published pvrinput variation which sends IR commands
to a set box box - specifically, the channel number stored in
channels.conf.
12345J2:6:C12:C:0:301:300:305:A1:62006:0:1009:0
El Viernes, 13 de Abril de 2007, Simon Baxter escribió:
My question is this. I need to modify the channel sent, so that double
(or triple) channel numbers are sent as '6 3' or '1 1 7' rather than
'63'
or '117'. i.e. put spaces between the letters.
You can try something like that: