📄 sll_cnt.c
字号:
/*
** Count the number of nodes on a singly linked list.
*/
#include "singly_linked_list_node.h"
#include <stdio.h>
int
sll_count_nodes( struct NODE *first )
{
int count;
for( count = 0; first != NULL; first = first->link ){
count += 1;
}
return count;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -