Switch cases

Please can anybody help me with the following code

#define HC12 Serial

int clearvar = 0;
char stringa[30];
char stringb[460];
int i = 0;

int x;
int s;
int e;
int z=0;
int i1;
int x1;
int s1;
int e1;
int z1=0;

void setup() {
  
Serial.begin(9600);
  HC12.begin(9600);
}

void loop(void) {

   if (HC12.available() > 0) {
       
    int inbyte = HC12.read(); 
    
       
    switch (inbyte) {

case'a': 

    memset(stringa, 0, sizeof(stringa)); // set string contents to zero
    HC12.setTimeout(50); // second input timeout
    i = HC12.readBytesUntil('\n', stringa, sizeof(stringa)-1); // Read line of input
    String poustis(stringa);
       s=poustis.toInt();      
      z=s;

  break;

case'c': 

    memset(stringb, 0, sizeof(stringb)); // set string contents to zero
    HC12.setTimeout(50); // second input timeout
    i = HC12.readBytesUntil('\n', stringb, sizeof(stringb)-1); // Read line of input
      String poustis1(stringb);
       s1=poustis1.toInt();      
      z1=s1;

      break;
 

}
   }
   
   if (z>0){
 e = z;
 z=z-1;

 char seco [3];
  String str6;
  str6=String(z);
  str6.toCharArray(seco,3);
  Serial.println(z);
}
 if (z1>0){
 e1 = z1;
 z1=z1-1;

 char seco1 [3];
  String str61;
  str61=String(z1);
  str61.toCharArray(seco1,3);
  Serial.println(z1);
}  
}

case ‘a’ works ok but case ‘c’ do nothing. Any idea?

Maybe you never receive a 'c'

Step 1 is to print what you receive

Step 0 - auto format your code!

Mark

    String poustis(stringa);
       s=poustis.toInt();

Dumb. You do NOT need to wrap the string in a String to have the toInt() method call atoi().

Which Arduino are you running that snippet on? Do you REALLY expect something to send you 460 characters that represent an int?