Skip to content

Commit 2a43c74

Browse files
committed
malloc, calloc : 宣言を書く場所を移動
1 parent aee1e25 commit 2a43c74

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

reference/cstdlib/calloc.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
* std[meta namespace]
55
* function[meta id-type]
66

7-
## 概要
8-
9-
```
7+
```cpp
108
void *calloc(size_t nmemb, size_t size);
119
```
1210
11+
## 概要
12+
1313
任意の個数のオブジェクトへの配列用ポインタを動的に確保し、その領域を 0 で初期化する。
1414
1515
この関数で返されるポインタは、割当領域の先頭のポインタである。

reference/cstdlib/malloc.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
* std[meta namespace]
55
* function[meta id-type]
66

7-
## 概要
8-
97
```cpp
108
void *malloc( size_t size );
119
```
1210
11+
## 概要
12+
1313
初期化されていない`size_t`個の`size`型配列のメモリを確保する。
1414
1515
確保可能なら、配列の初めのポインタを返す。

0 commit comments

Comments
 (0)