VTC Distribution Function Reference avl.vtc ------- PLIST make_tree(FPTR/PPTR compare_func) NULL insert_tree(PLIST tree, ?? key, ?? data) ?? find_tree(PLIST tree, ?? key) NULL/1 delete_tree(PLIST tree, ?? key) NULL traverse_tree(PLIST tree, FPTR/PPTR map_func, [...]) command.vtc -------- ?? efind(FPTR/PPTR fptr, SPTR thing, SPTR s) NULL add_cmd(SPTR name, INT args, FPTR/PPTR fptr, SPTR fmt) PLIST/NULL find_cmd(SPTR name) PLIST Find_cmd(SPTR name) NULL add_macro(SPTR name, SPTR/FPTR cmd) SPTR/FPTR/NULL find_macro(SPTR name) SPTR/FPTR Find_macro(SPTR name) NULL process_cmdline(SPTR line, [SPTR full, APTR args]) hist.vtc -------- NULL add_hist(SPTR line, [INT style, ?? PLIST world]) SPTR/NULL get_histline(INT num) NULL recall(INT num, SPTR pattern, INT all, INT gag, INT hilite, INT names, INT linenos, PLIST/NULL world) NULL histdump(INT start, INT end) hook.vtc -------- APTR make_hook(...) NULL add_to_hook(APTR hook, FPTR/PPTR fptr) NULL del_from_hook(APTR hook, FPTR/PPTR fptr) NULL exec_hook(APTR hook, ...) line.vtc -------- NULL add_line(SPTR name, SPTR addr, INT port) main.vtc -------- NULL load_cmd(SPTR fname) misc.vtc -------- NULL save_one(FPTR funcptr, SPTR fname) mud.vtc ------- NULL add_mud(SPTR name, SPTR addr, INT port, SPTR char, SPTR pwd) raw.vtc ------- NULL add_raw(SPTR name, SPTR addr, INT port) remote.vtc ---------- PLIST/NULL cur_world() NULL dispatch(SPTR line, [RMT rmt]) NULL receive(SPTR line) RMT/NULL world(PLIST world, [INT login, WIN win]) trig.vtc -------- NULL add_trig(SPTR name, SPTR pattern, SPTR/FPTR cmd, INT pri, PLIST/NULL world, INT enabled, INT rearm, INT style, INT isreg) NULL edit_trig(SPTR name, INT pri, INT enabled, INT rearm, INT style, PLIST/NULL/0 world) INT check_triggers(SPTR text) util.vtc -------- NULL nothing() NULL fill_array(APTR array, ...) APTR adup(INT size, APTR array) INT isdigit(INT c) INT isalpha(INT c) INT isprint(INT c) INT isupper(INT c) INT islower(INT c) NULL echoln(...) SPTR field(SPTR str, INT len) INT mod(INT a, INT b) INT min(INT a, INT b) INT max(INT a, INT b) SPTR skipspaces(SPTR s) NULL fcloseall() NULL ptable(ASSOC a, ...) NULL new_list(...) NULL add_list(APTR list, ?? data, [INT pos]) NULL del_list(APTR list, INT pos) INT/NULL list_find_eq(APTR list, ?? elem) INT/NULL list_find_strcmp(APTR list, ?? elem) INT/NULL list_find_stricmp(APTR list, ?? elem) INT/NULL list_find_gen(APTR list, ?? elem, FPTR/PPTR compare_func) SPTR ctrl(SPTR str) SPTR dispstr(SPTR str) SPTR reverse(SPTR str) SPTR rotn(SPTR str, INT n) APTR explode(SPTR str, SPTR separator) APTR explo(SPTR str, SPTR separator) SPTR stringconst(SPTR str) SPTR arglist(...) INT get_flag(SPTR s) SPTR bprintf(SPTR fmt, ...) NULL sprintf(SPTR s, SPTR fmt, ...) NULL printf([WIN w], SPTR fmt, ...) NULL sendf([RMT r], SPTR fmt, ...) NULL fprintf(FILE f, SPTR fmt, ...) SPTR getopt(SPTR str, SPTR switches, APTR args) window.vtc ---------- WIN/NULL std_split(WIN win, INT row) NULL init_win(WIN win) NULL add_status(WIN win, SPTR msg, [INT left]) NULL/-1 change_status(WIN win, SPTR msg, SPTR new) NULL/-1 std_display(WIN win, RMT rmt, [INT suppress]) NULL output(SPTR text, [INT style], [WIN win]) NULL reset_pager([WIN win]) NULL discard_pager_buffer([WIN win]) NULL perror(SPTR s) world.vtc --------- PLIST new_world(PLIST type, SPTR name, SPTR addr, INT port) NULL add_world(PLIST world) PLIST/NULL find_world(SPTR name) PLIST Find_world(SPTR name)