From 81cdf1d53039e2005e2f3db3367acd8b232ce598 Mon Sep 17 00:00:00 2001 From: Gonglja Date: Sat, 14 Jan 2023 17:10:04 +0800 Subject: [PATCH] docs(codes/c): add function description --- codes/c/chapter_array_and_linkedlist/my_list.c | 2 +- codes/c/chapter_stack_and_queue/linkedlist_stack.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codes/c/chapter_array_and_linkedlist/my_list.c b/codes/c/chapter_array_and_linkedlist/my_list.c index 4f530b6ea..f80802448 100644 --- a/codes/c/chapter_array_and_linkedlist/my_list.c +++ b/codes/c/chapter_array_and_linkedlist/my_list.c @@ -16,7 +16,7 @@ struct mylist { }; typedef struct mylist MyList; -/* 声明函数 */ +/* 前置声明 */ void extendCapacity(MyList* l); /* 构造函数 */ diff --git a/codes/c/chapter_stack_and_queue/linkedlist_stack.c b/codes/c/chapter_stack_and_queue/linkedlist_stack.c index f8d56459e..c0d02c968 100644 --- a/codes/c/chapter_stack_and_queue/linkedlist_stack.c +++ b/codes/c/chapter_stack_and_queue/linkedlist_stack.c @@ -13,7 +13,7 @@ struct LinkedListStack { }; typedef struct LinkedListStack LinkedListStack; - +/* 构造函数 */ void constructor(LinkedListStack* stk) { stk->stackTop = NULL; stk->stkSize = 0;