if(WIFEXITED(STATUS)) printf(childprocess exited with code %d\n",WEXITSTATUS(status));什么意思?

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/07 03:10:46

if(WIFEXITED(STATUS)) printf(childprocess exited with code %d\n",WEXITSTATUS(status));什么意思?
if(WIFEXITED(STATUS)) printf(childprocess exited with code %d\n",WEXITSTATUS(status));什么意思?

if(WIFEXITED(STATUS)) printf(childprocess exited with code %d\n",WEXITSTATUS(status));什么意思?
if(WIFEXITED(STATUS)) printf(childprocess exited with code %d\n",WEXITSTATUS(status));
WIFEXITED(STATUS)应该是去判断一种状态,若此状态不为0,则去输出这种状态的值.即WIFEXITED(STATUS)的值.
printf(childprocess exited with code %d\n",WEXITSTATUS(status));
此句你很printf(处应该有一个引号(").