I'm sure you'll get your C program sorted out eventually.
Meanwhile, if you just want to bench test the LEDs, you can install Bitlash (http://bitlash.net) and define little test functions like this to debug your circuit:
// Bitlash functions to independently control two RGB LEDs on pins 3/5/6 and 9/10/11
function setup { pinmode(3,1); pinmode(5,1); pinmode(6,1); pinmode(9,1); pinmode(10,1); pinmode(11,1); }
function setleft { a3=arg(1); a4=arg(2); a5=arg(3); }
function setright { a9=arg(1); a10=arg(2); a11=arg(3); }
Then, in the serial monitor, you can tell bitlash to set the left one red and the right one yellow:
> setleft(255,0,0); setright(0,255,255);
Without writing any parsing code.
-br