Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Mzzopublic/C
/ functions
Functions
976 in github.com/Mzzopublic/C
⨍
Functions
976
◇
Types & classes
127
↓ 94 callers
Function
error
* Name: error * Purpose: To report an error, and usually make the user type <ESC> before * continuing. * Date: June 5, 1991 * Pass
经典示例/218.功能强大的文本编辑器/MAIN.C:98
↓ 81 callers
Function
un_copy_line
* Name: un_copy_line * Purpose: To copy the cursor line, if necessary, from the current line * buffer, shifting the main text to make t
经典示例/218.功能强大的文本编辑器/UTILS.C:179
↓ 70 callers
Function
entab_linebuff
* Name: entab_linebuff * Purpose: To compress space in line buffer * Date: October 31, 1992 * Notes: compress spaces back to tabs in the li
经典示例/218.功能强大的文本编辑器/TAB.C:508
↓ 56 callers
Function
judge
�ж��ض��������ϵ�״̬ */
经典示例/215.推箱子游戏/215.C:345
↓ 48 callers
Function
getkey
* Name: getkey * Date: July 21, 1991 * Notes: Waits for keyboard input and returns the key pressed by the user. */
经典示例/218.功能强大的文本编辑器/TDECFG.C:435
↓ 48 callers
Function
my_free
* Name: my_free * Purpose: free memory from the far heap * Date: April 1, 1993 * Passed: mem: pointer to memory to free in far heap */
经典示例/218.功能强大的文本编辑器/PORT.C:53
↓ 41 callers
Function
make_ruler
* Name: make_ruler * Purpose: make ruler with tabs, tens, margins, etc... * Date: June 5, 1991 * Passed: window: pointer to current window
经典示例/218.功能强大的文本编辑器/HWIND.C:323
↓ 41 callers
Function
printwall
���ض��������ϻ�ǽ�ڲ��������¼״̬�ĺ��� */
经典示例/215.推箱子游戏/215.C:35
↓ 40 callers
Function
show_ruler
* Name: show_ruler * Purpose: show ruler with tens, margins, etc... * Date: June 5, 1991 * Passed: window: pointer to current window */
经典示例/218.功能强大的文本编辑器/HWIND.C:412
↓ 39 callers
Function
copy_line
* Name: copy_line * Purpose: To copy the cursor line, if necessary, into the current line * buffer, so that changes can be made efficie
经典示例/218.功能强大的文本编辑器/UTILS.C:138
↓ 34 callers
Function
xygoto
* Name: xygoto * Date: July 21, 1991 * Notes: Use the video interrupt to set the cursor. */
经典示例/218.功能强大的文本编辑器/TDECFG.C:327
↓ 29 callers
Function
restore_screen_line
* Name: restore_screen_line * Purpose: To restore the characters and attributes of a line on screen. * Date: June 5, 1991 * Passed: col:
经典示例/218.功能强大的文本编辑器/CONSOLE.C:1497
↓ 28 callers
Function
detab_linebuff
* Name: detab_linebuff * Purpose: To expand tabs in line buffer so we can handle editing functions * Date: October 31, 1992 * Notes: before
经典示例/218.功能强大的文本编辑器/TAB.C:480
↓ 28 callers
Function
my_malloc
* Name: my_malloc * Purpose: malloc from the far heap * Date: April 1, 1993 * Passed: mem: pointer to memory to free in far heap *
经典示例/218.功能强大的文本编辑器/PORT.C:17
↓ 28 callers
Function
printman
���ض��������ϻ��˵ĺ��� */
经典示例/215.推箱子游戏/215.C:74
↓ 27 callers
Function
circle
����circle�����ж�������n��d��������ʾ��ʽ�Ƿ��ǻ����� */
经典示例/019.判断回文数/19.c:2
↓ 27 callers
Function
sync
* Name: sync * Purpose: carry out cursor movements in all visible windows * Date: January 15, 1992 * Passed: window * Notes: switch sync
经典示例/218.功能强大的文本编辑器/ED.C:1857
↓ 25 callers
Function
check_virtual_col
* Name: check_virtual_col * Purpose: ensure integrity of rcol, ccol, and bcol * Date: June 5, 1991 * Passed: window: pointer to current win
经典示例/218.功能强大的文本编辑器/UTILS.C:38
↓ 25 callers
Function
get_name
* Name: get_name * Purpose: To prompt the user and read the string entered in response. * Date: June 5, 1992 * Passed: prompt: prompt to off
经典示例/218.功能强大的文本编辑器/UTILS.C:438
↓ 25 callers
Function
show_curl_line
* Name: show_curl_line * Purpose: show current line in curl color * Date: January 16, 1992 * Passed: window: pointer to current window */
经典示例/218.功能强大的文本编辑器/UTILS.C:1139
↓ 24 callers
Function
bar
经典示例/220.进销存管理系统/220.C:734
↓ 24 callers
Function
design
经典示例/220.进销存管理系统/220.C:964
↓ 24 callers
Function
dup_window_info
* Name: dup_window_info * Purpose: Copy window info from one window pointer to another * Date: June 5, 1991 * Passed: dw: destination window
经典示例/218.功能强大的文本编辑器/UTILS.C:1162
↓ 23 callers
Function
getfunc
* Name: getfunc * Purpose: get the function assigned to key c * Date: June 5, 1992 * Passed: c: key just pressed * Notes: key codes less
经典示例/218.功能强大的文本编辑器/CFGFILE.C:870
↓ 23 callers
Function
set_prompt
* Name: set_prompt * Purpose: To display a prompt, highlighted, at the bottom of the screen. * Date: October 1, 1989 * Passed: prompt: promp
经典示例/218.功能强大的文本编辑器/UTILS.C:393
↓ 22 callers
Function
printbox
���ض��������ϻ����Ӳ��������¼״̬�ĺ��� */
经典示例/215.推箱子游戏/215.C:42
↓ 21 callers
Function
is_line_blank
* Name: is_line_blank * Purpose: is line empty or does it only contain spaces? * Date: November 28, 1991 * Passed: s: the string to searc
经典示例/218.功能强大的文本编辑器/UTILS.C:1307
↓ 21 callers
Function
show_avail_mem
* Name: show_avail_mem * Purpose: show available free memory in lite bar at bottom of screen * Date: June 5, 1991 */
经典示例/218.功能强大的文本编辑器/HWIND.C:123
↓ 20 callers
Function
printwhither
���ض��������ϻ�Ŀ�ĵز��������¼״̬�ĺ��� */
经典示例/215.推箱子游戏/215.C:68
↓ 20 callers
Function
put_dq
* Name: put_dq * Purpose: queue future states * Date: June 5, 1993 * Passed: v: state to queue * Returns: none, but modifies local global
经典示例/218.功能强大的文本编辑器/REGX.C:629
↓ 17 callers
Function
Draw1
经典示例/214.模拟扫雷游戏/214.C:675
↓ 17 callers
Function
myiswhitespc
* Name: myiswhitespc * Purpose: To determine whether or not a character is *NOT* part of a "word". * Date: July 4, 1992 * Passed: c: the cha
经典示例/218.功能强大的文本编辑器/UTILS.C:24
↓ 16 callers
Function
entab_adjust_rcol
* Name: entab_adjust_rcol * Purpose: given virtual rcol in a line, find real column * Date: October 31, 1992 * Passed: s: string pointer
经典示例/218.功能强大的文本编辑器/TAB.C:590
↓ 16 callers
Function
find_adjust
* Name: find_adjust * Purpose: place cursor on screen given a position in file - default cline * Date: June 5, 1991 * Passed: window: point
经典示例/218.功能强大的文本编辑器/FINDREP.C:952
↓ 16 callers
Function
find_end
* Name: find_end * Purpose: To find the last character in a line * Date: October 31, 1992 * Passed: s: the string to search * l
经典示例/218.功能强大的文本编辑器/UTILS.C:1280
↓ 16 callers
Function
search
* Name: search * Purpose: binary search a CONFIG_DEFS structure * Date: June 5, 1992 * Passed: token: token to search for * list:
经典示例/218.功能强大的文本编辑器/CFGFILE.C:518
↓ 15 callers
Function
combine_strings
* Name: combine_strings * Purpose: stick 3 strings together * Date: June 5, 1991 * Passed: buff: buffer to hold concatenation of 3 string
经典示例/218.功能强大的文本编辑器/HWIND.C:308
↓ 15 callers
Function
goto_xy
经典示例/163.彩色弹出菜单/163.C:45
↓ 14 callers
Function
printwhither1
���ض��������ϻ�Ŀ�ĵز��������¼״̬�ĺ��� */
经典示例/215.推箱子游戏/215.C:49
↓ 14 callers
Function
show_search_message
* Name: show_search_message * Purpose: display search status * Date: January 8, 1992 * Passed: i: index into message array * c
经典示例/218.功能强大的文本编辑器/FINDREP.C:891
↓ 13 callers
Function
display_current_window
* Name: display_current_window * Purpose: display text in current window * Date: June 5, 1991 * Passed: window: pointer to current window
经典示例/218.功能强大的文本编辑器/UTILS.C:945
↓ 13 callers
Function
load_undo_buffer
* Name: load_undo_buffer * Purpose: To copy the cursor line to the undo buffer. * Date: September 26, 1991 * Passed: file: pointer
经典示例/218.功能强大的文本编辑器/UTILS.C:342
↓ 13 callers
Function
show_changed_line
* Name: show_changed_line * Purpose: Only one line was changed in file, just show it * Date: June 5, 1991 * Passed: window: pointer to curr
经典示例/218.功能强大的文本编辑器/UTILS.C:1060
↓ 12 callers
Function
backup_file
* Name: backup_file * Purpose: To make a back-up copy of current file. * Date: June 5, 1991 * Passed: window: current window pointer */
经典示例/218.功能强大的文本编辑器/FILE.C:752
↓ 12 callers
Function
first_non_blank
* Name: first_non_blank * Purpose: To find the column of the first non-blank character * Date: June 5, 1991 * Passed: s: the string to se
经典示例/218.功能强大的文本编辑器/UTILS.C:1251
↓ 11 callers
Function
chineseputs
经典示例/163.彩色弹出菜单/163.C:71
↓ 11 callers
Function
emit_cnode
* Name: emit_cnode * Purpose: add a null node to our pattern matching machine * Date: June 5, 1993 * Passed: index: current node in nfa *
经典示例/218.功能强大的文本编辑器/REGX.C:1106
↓ 11 callers
Function
regx_error
* Name: regx_error * Purpose: display reg ex error message and set reg ex error code * Date: June 5, 1993 * Passed: line: line to display e
经典示例/218.功能强大的文本编辑器/REGX.C:1173
↓ 11 callers
Function
show_ruler_pointer
* Name: show_ruler_pointer * Purpose: show ruler pointer * Date: June 5, 1991 * Passed: window: pointer to current window */
经典示例/218.功能强大的文本编辑器/HWIND.C:445
↓ 10 callers
Function
Draw
��������ӳ�����������һ����ť*/
经典示例/214.模拟扫雷游戏/214.C:541
↓ 10 callers
Function
get_yn
* Name: get_yn * Purpose: To input a response of yes or no. * Date: October 1, 1989 * Returns: the user's answer. A_??? - see tdestr.h */
经典示例/218.功能强大的文本编辑器/UTILS.C:788
↓ 10 callers
Function
show_box
* Name: show_box * Date: October 5, 1991 * Passed: x: number of lines to scroll * y: row scroll starts on * p:
经典示例/218.功能强大的文本编辑器/TDECFG.C:630
↓ 10 callers
Function
show_size
* Name: show_size * Purpose: show number of lines in file * Date: June 5, 1991 * Passed: window: pointer to current window */
经典示例/218.功能强大的文本编辑器/UTILS.C:1689
↓ 9 callers
Function
Dead
������Ĵ�������*/ x,yҪ�жϵĵ������,sizelΪ���Ĵ�С*/
经典示例/214.模拟扫雷游戏/214.C:601
↓ 9 callers
Function
GetKey
��ȡ����������Ͱ�λ��0��ΪASCII�룬��Ϊ0��Ϊ���Ƽ� */
经典示例/211.双人竞走游戏/211.C:179
↓ 9 callers
Function
bin_offset_adjust
* Name: bin_offset_adjust * Purpose: place cursor on screen given a position in file - default cline * Date: June 5, 1991 * Passed: window:
经典示例/218.功能强大的文本编辑器/FINDREP.C:914
↓ 9 callers
Function
check_block
* Name: check_block * Class: helper function * Purpose: To check that the block is still valid. * Date: June 5, 1991 * Notes: After some
经典示例/218.功能强大的文本编辑器/BLOCK.C:1845
↓ 9 callers
Function
main
经典示例/080.亲密数/80.c:2
↓ 9 callers
Function
main
经典示例/035.报数游戏/35.c:2
↓ 9 callers
Function
random
经典示例/106.产生随机数/106.c:9
↓ 8 callers
Function
compare_pivot
* Name: compare_pivot * Purpose: compare pivot string with text string * Date: June 5, 1992 * Passed: text: pointer to current line * Note
经典示例/218.功能强大的文本编辑器/SORT.C:474
↓ 8 callers
Function
draw_circle
经典示例/216.五子棋游戏/216.C:97
↓ 8 callers
Function
goto_xy
经典示例/145.艺术清屏/145.C:100
↓ 8 callers
Function
init
��ʼ����������ʼ���������Ļ */
经典示例/215.推箱子游戏/215.C:89
↓ 8 callers
Function
mark
��ֵ�Ӻ���***************************************/
经典示例/069.骑士巡游/69.c:114
↓ 8 callers
Function
newperson
[����]newperson�������� */
经典示例/036.模拟社会关系/36.c:13
↓ 8 callers
Function
print_relate
����print_relate�����������p���������Ա���ֹ�ϵ */
经典示例/036.模拟社会关系/36.c:77
↓ 8 callers
Function
printboxin
���ض��������ϻ�������Ŀ�ĵ��ϲ��������¼״̬�ĺ��� */
经典示例/215.推箱子游戏/215.C:82
↓ 8 callers
Function
setup_window
* Name: setup_window * Purpose: To set the page length and the center line of a window, based * on the top and bottom lines. * Date:
经典示例/218.功能强大的文本编辑器/WINDOW.C:770
↓ 7 callers
Function
Equation
(x)
经典示例/112.求解非线性方程/112.c:96
↓ 7 callers
Function
build_next_table
* Name: build_next_table * Date: August 29, 1993 * Notes: the algorithm for building the next table is based the description * by
经典示例/218.功能强大的文本编辑器/TDECFG.C:153
↓ 7 callers
Function
detab_a_line
* Name: detab_a_line * Purpose: To inflate tabs in any line in the file * Date: October 31, 1992 * Returns: pointer to text or tabout_buff *
经典示例/218.功能强大的文本编辑器/TAB.C:530
↓ 7 callers
Function
load_box_buff
* Name: load_box_buff * Class: helper function * Purpose: copy the contents of a BOX to a block buffer. * Date: June 5, 1991 * Passed: bl
经典示例/218.功能强大的文本编辑器/BLOCK.C:1558
↓ 7 callers
Function
main
经典示例/199.方差运算/199.C:21
↓ 7 callers
Function
main
经典示例/010.猜数字游戏/10.c:3
↓ 7 callers
Function
main
经典示例/110.绘制彩色抛物线/110.c:55
↓ 7 callers
Function
parse_token
* Name: parse_token * Purpose: given an input line, find the first token * Date: June 5, 1992 * Passed: line: line that contains the text t
经典示例/218.功能强大的文本编辑器/CFGFILE.C:480
↓ 7 callers
Function
show_ruler_char
* Name: show_ruler_char * Purpose: show ruler character under ruler pointer * Date: June 5, 1991 * Passed: window: pointer to current windo
经典示例/218.功能强大的文本编辑器/HWIND.C:426
↓ 7 callers
Function
show_window_header
* Name: show_window_header * Purpose: show file stuff in window header * Date: June 5, 1991 * Passed: window: pointer to current window *
经典示例/218.功能强大的文本编辑器/UTILS.C:1556
↓ 7 callers
Function
ventry
经典示例/220.进销存管理系统/220.C:190
↓ 6 callers
Function
DrawPoly
������ǶȻ������*/
经典示例/153.图形时钟/153.C:48
↓ 6 callers
Function
adjust_windows_cursor
* Name: adjust_windows_cursor * Purpose: A change has been made, make sure pointers are not ahead of * or behind file. * Date: June
经典示例/218.功能强大的文本编辑器/UTILS.C:1179
↓ 6 callers
Function
attempt_edit_display
* Name: attempt_edit_display * Purpose: try to load then display a file * Date: June 5, 1991 * Passed: fname: file name to load *
经典示例/218.功能强大的文本编辑器/FILE.C:1433
↓ 6 callers
Function
build_boyer_array
* Name: build_boyer_array * Purpose: To set up the boyer array for forward and backward searches. * Date: June 5, 1991 * Notes: Set up one
经典示例/218.功能强大的文本编辑器/FINDREP.C:356
↓ 6 callers
Function
countvalue
经典示例/182.新完全平方数/182.C:4
↓ 6 callers
Function
countvalue
经典示例/206.Fibonacc数列/206.C:4
↓ 6 callers
Function
exp
经典示例/108.递归整数四则运算/108.c:58
↓ 6 callers
Function
find_left_margin
* Name: find_left_margin * Purpose: find left margin depending on word wrap mode * Date: June 5, 1992 * Passed: ll: node pointer to
经典示例/218.功能强大的文本编辑器/WORDWRAP.C:54
↓ 6 callers
Function
load_pivot
* Name: load_pivot * Purpose: load pivot point for insertion sort * Date: June 5, 1992 * Passed: text: line that contains the pivot */
经典示例/218.功能强大的文本编辑器/SORT.C:459
↓ 6 callers
Function
main
经典示例/202.素数题/202.C:19
↓ 6 callers
Function
main
经典示例/009.乘法口诀表/9.c:3
↓ 6 callers
Function
match
经典示例/108.递归整数四则运算/108.c:29
↓ 6 callers
Function
redraw_current_window
* Name: redraw_current_window * Purpose: redraw all info in window * Date: July 13, 1991 * Passed: window: pointer to current window */
经典示例/218.功能强大的文本编辑器/UTILS.C:1037
↓ 6 callers
Function
skip_eol
* Name: skip_eol * Purpose: move the diff to the next line * Date: October 31, 1992 * Passed: d: pointer to current node *
经典示例/218.功能强大的文本编辑器/DIFF.C:583
↓ 5 callers
Function
ListInsert
经典示例/055.链表操作(2)/55.c:67
↓ 5 callers
Function
PutPoint
ֱ��д��Ƶ������ */
经典示例/147.VGA256色模式编程/147.C:46
↓ 5 callers
Function
ask_wrap_replace
* Name: ask_wrap_replace * Purpose: After a wrap, ask user if he wants to (q)uit or (c)ontine. * Date: June 5, 1991 * Returns: TRUE if user w
经典示例/218.功能强大的文本编辑器/FINDREP.C:114
↓ 5 callers
Function
color_number
* Name: color_number * Date: July 21, 1991 * Passed: dest: buffer to store the color sample * num: attribute number * Notes:
经典示例/218.功能强大的文本编辑器/CFGCOLOR.C:194
↓ 5 callers
Function
combine_wrap_spill
* Name: combine_wrap_spill * Purpose: combine word wrap lines so we don't push each word onto a * separate line. * Date: November 27
经典示例/218.功能强大的文本编辑器/WORDWRAP.C:506
↓ 5 callers
Function
copy_buff_2file
* Name: copy_buff_2file * Class: helper function * Purpose: copy the contents of block buffer to destination file * Date: June 5, 1991 * P
经典示例/218.功能强大的文本编辑器/BLOCK.C:1619
next →
1–100 of 976, ranked by callers