您的位置首页百科知识

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

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(处应该有一个引号(").