RegisterCtree Register (establish) a c-tree Plus instance. Short Name REGCTREE() Type Low-level function Declaration COUNT RegisterCtree(pTEXT regid) Description RegisterCtree() accepts a unique registration reference name, pointed to by regid, and establishes a unique c-tree Plus instance. Each call allocates a new control block for the c-tree Plus global variables. The registration reference name can be up to 31 bytes and a NULL terminator in length. Return
See c-tree Plus Error Codes for a complete listing of valid c-tree Plus error values. Example TEXT inpbuf[32]; /* input buffer */
gets(inpbuf); if (RegisterCtree(inpbuf)) {
ctrt_printf("\nCould not register {%s} data base",inpbuf);
ctlxmg_exit(2); } Limitations File handles are not shared between instances. Virtual logic cannot close files in other instances. See also NextCtree(), SwitchCtree(), UnRegisterCtree(), WhichCtree() |
||||||||||||||||||