contributed by < danielian1121
>
- 請同步更新原專案最新的 commit
- commit message
- Singly linked list 請遵循 commit message 的規範撰寫
- Finish, add comments and make code cleaner 不需要寫出 Finish, 與您的修改無關
- Change strdup to malloc 增加說明為什麼要抽換為 malloc,且此有一個 Makefile 的修改與此 commit 描述無關
課程助教
You may add other fields to the structure list_ele, although you need not do so.
題目貌似沒有規定不能用 doubly linked list,但看到其他同學的共筆幾乎都沒有改到 list_ele_t
的架構,之後會開一個 branch 來實做 singly linked list
目前已改成用 malloc 搭配 strcpy 的方式來 copy value
strcpy(q->head->value, sp)
,因為有可能會造成 Buffer Overflow已有新 branch "singly"