get_recent_command()和search_in_list_for_n()函数返回正确的命令,但是当我将这些函数的结果放在execvp()调用中"args“的位置时,什么都不会发生。在将命令添加到列表之前,我尝试了null终止命令,但它仍然没有工作。我不知道我还能做什么..。提前谢谢你!}
printf("\n Adding node to end of list with value %s\n",str);
elseptr->n
测试:使用说明获得输入:*enter a word that starts with "pre"*:。用输入字符串调用pre_word()。print 打印消息解释是一个有效的"pre"单词 if word.startswith("pre") and word.isalpha(): elsereturn