Ethernet Switching (case)

Hello Guys,

I am using the Ethernet Switching Code V4.06 from http://www.instructables.com/id/Ethernet-Switching-with-Arduino/3/

I tryed to use more than 10 Outputs but I got an Error: error: duplicate case value.

          switch (c) {

             case '0':
               //add code here to trigger on 0
               triggerPin(outputAddress[0], client, outp);
               break;            
             case '1':
            //add code here to trigger on 1
               triggerPin(outputAddress[1], client, outp);
               break;             
             case '2':
               //add code here to trigger on 2
               triggerPin(outputAddress[2], client, outp);
               break;
             case '3':
               //add code here to trigger on 3
               triggerPin(outputAddress[3], client, outp);
               break;
             case '4':
               //add code here to trigger on 4
               triggerPin(outputAddress[4], client, outp);
               break;
             case '5':
               //add code here to trigger on 5
               triggerPin(outputAddress[5], client, outp);
               //printHtml(client);
               break;
             case '6':
               //add code here to trigger on 6
               triggerPin(outputAddress[6], client, outp);
               break;
             case '7':
               //add code here to trigger on 7
               triggerPin(outputAddress[7], client, outp);
               break;
             case '8':
               //add code here to trigger on 8
               triggerPin(outputAddress[8], client, outp);
               break;
             case '9':
               //add code here to trigger on 9
               triggerPin(outputAddress[9], client, outp);
               break;
             case '10':
               //add code here to trigger on 10
               triggerPin(outputAddress[10], client, outp);
               break;
             case '11':
               //add code here to trigger on 11
               triggerPin(outputAddress[11], client, outp);
               break;
          } //end of switch case

...

How can I fix that? I also tryed with "if" but then I can use 0 - 9 but 10+ won't work and I don't know why.
You got an idea?

Thanks in Advance
JulHa

Single quotes are for single characters. Which ONE key did you press to get this single character?

             case '10':

What type is c? Can it really hold '10'? Meaningfully?

  char c = client.read();

char myChar = 'A';
is the same as
char myChar = 65;

Would it help to change it to
int c = client.read();?

JulHa:
Would it help to change it to
int c = client.read();?

Nope.

if you are receiving a byte value of 10, then use real numbers ( not chars ) in the switch.
If you receive two chars I.e "10" then you need two reads.

It doesn't work now because of value truncation.

First '11' is not the same as "11"

These statements are true due to truncation:

'0' == ( char ) '10';
'1' == ( char ) '11';