回答編集履歴

1

修正

2016/11/02 00:17

投稿

A.Ichi
A.Ichi

スコア4070

test CHANGED
@@ -4,9 +4,9 @@
4
4
 
5
5
  ```c
6
6
 
7
- mou[5]='\0';
7
+ mou[5]='\0';      //文字列の終端の文字0を入れる
8
8
 
9
- strncpy(rbuf,mou,2);
9
+ strncpy(rbuf,mou,2);  //3文字以降の0の前までの文字列をコピー
10
10
 
11
11
  ```
12
12