User`s manual

Dynamic C Users Manual digi.com 215
switch
Indicates the start of a switch statement.
switch( expression ){
case const1:
...
break;
case const2:
...
break;
case const3:
...
break
default :
...
}
The switch statement may contain any number of cases. The constants of the case statements are com-
pared with expression. If there is a match, the statements for that case execute. The default case, if
it is present, executes if none of the constants of the case statements match expression.
If the statements for a case do not include a break, return, continue, or some means of exiting
the switch statement, the cases following the selected case will also execute, regardless of whether their
constants match the switch expression.
typedef
This keyword provides a way to create new names for existing data types.
typedef struct {
int x;
int y;
} xyz; // defines a struct type...
xyz thing; // ...and a thing of type xyz
typedef uint node; // meaningful type name
node master, slave1, slave2;