User`s manual

Dynamic C Users Manual digi.com 197
char
Declares a variable or array element as an unsigned 8-bit character.
char c, x, *string = "hello";
int i;
...
c = (char)i; // type casting operator
cofunc
Indicates the beginning of a cofunction.
cofunc|scofunc type [name][[dim]]([type arg1, ..., type argN])
{ [ statement | yield; | abort; | waitfor(expression);]... }{
...
}
cofunc, scofunc
The keywords cofunc or scofunc (a single-user cofunction) identify the statements enclosed in curly
braces that follow as a cofunction.
type
Whichever keyword (cofunc or scofunc) is used is followed by the data type returned (void, int,
etc.).
name
A name can be any valid C name not previously used. This results in the creation of a structure of type
CoData of the same name.
dim
The cofunction name may be followed by a dimension if an indexed cofunction is being defined.
cofunction arguments (arg1, . . ., argN)
As with other Dynamic C functions, cofunction arguments are passed by value.
cofunction body
A cofunction can have as many C statements, including abort, yield, waitfor, and waitfordone
statements, as needed. Cofunctions can contain calls to other cofunctions.