Skip to content

Commit

Permalink
add darray_t to replace array_t
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Jan 16, 2019
1 parent e931992 commit fc3554e
Show file tree
Hide file tree
Showing 13 changed files with 2,026 additions and 631 deletions.
2 changes: 1 addition & 1 deletion docs/manual.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@

## 二、基本函数库

* [array](manual/array_t.md) 动态数组。
* [darray](manual/darray_t.md) 动态数组。
* [slist](manual/slist_t.md) 单向链表。
* [memory](manual/tk_mem_t.md) 内存管理相关函数和宏。
* [rgba](manual/rgba_t.md) RGBA颜色值。
Expand Down
18 changes: 1 addition & 17 deletions docs/manual/array_t.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,7 @@
### 概述
动态数组,根据元素个数动态调整数组的容量。

用array\_init初始化时,用array\_deinit释放。如:

```c
array_t array;
array_init(&array, 10);
...
array_deinit(&array);
```
用array\_create创建时,用array\_destroy销毁。如:
```c
array_t* array = array_create(10);
...
array_destroy(array);
```

> 本类已经过时,逐步替换成darray。

----------------------------------
Expand Down
Loading

0 comments on commit fc3554e

Please sign in to comment.