質問編集履歴
2
カテゴリの追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
1
誤字
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, "
|
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)
|
51
|
+
if (fork() == 0) { /* child process */
|
52
52
|
|
53
53
|
execvp(*argv, argv);
|
54
54
|
|