Question

I saw the following code in CCTL (~line 330) https://github.com/jobytaffey/cctl/blob/master/cctl/main.c

switch(page)
{
   // ...
   ack:
      cons_putc(0);
}

What is the ack: section for? It looks like same as default: to me. I can't find it in the SDCC docs either.

Is this something in C spec?

Thank you

Was it helpful?

Solution

It's not a C keyword; it's just a label. Note the corresponding goto statements.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top