#include <coro.h> cptr = _coro(func[,stack,userbytes,arg1,arg2,...]);
"_coro" creates a co-routine and returns an identifier that can be used to refer to the co-routine in subsequent operations. When control is initially passed to the co-routine, the co-routine will begin executing "func" with the arguments specified.
Note that the NSC run-time library could require up to 1000 words of stack when writing to files, so if the co-routine does any I/O, the stack size should be increased. Because of the nature of the NSC library, there's very little "cost" associated with allocating a large stack if you don't actually use the memory. Therefore, we recommend that you specify an ample "stack" argument to allow for I/O and error-handling.
Copyright © 1996, Thinkage Ltd.