質問編集履歴

2

カテゴリの追加

2021/07/11 13:52

投稿

SUNMOON_14
SUNMOON_14

スコア20

test CHANGED
File without changes
test CHANGED
File without changes

1

誤字

2021/07/11 13:52

投稿

SUNMOON_14
SUNMOON_14

スコア20

test CHANGED
File without changes
test CHANGED
@@ -36,7 +36,7 @@
36
36
 
37
37
  for (argc = 0; argc < 10; argc++){
38
38
 
39
- if((argv[argc]=strtok(cmdp, "")) == NULL)
39
+ if((argv[argc]=strtok(cmdp, " ")) == NULL)
40
40
 
41
41
  break;
42
42
 
@@ -48,7 +48,7 @@
48
48
 
49
49
 
50
50
 
51
- if (fork() == 0) f /* child process */
51
+ if (fork() == 0) { /* child process */
52
52
 
53
53
  execvp(*argv, argv);
54
54