预期';' 在'{'之前

psi*_*ion 1 c libxml2

在libxml和c中工作,我有这个代码snippit:

if (!xmlStrcmp(cur->name, (const xmlChar *)"headline")) {
            key = xmlNodeListGetString(doc,cur->xmlChildrenNode,1);
            conf_var.headline=key;
            xmlFree(key);
        } 
        elseif (!xmlStrcmp(cur->name, (const xmlChar *)"para")) {
            key = xmlNodeListGetString(doc,cur->xmlChildrenNode,1);
            conf_var.para=key;
            xmlFree(key);
        } 
Run Code Online (Sandbox Code Playgroud)

当我编译它时,我收到以下错误:things.c:29:59:error:expected';' 在'{'之前

引用的行是elseif行.我真的不知道这里有什么问题,因为在if命令中,相同的代码位于其上方.这有什么不对?

Jam*_*lis 8

elseif在C. 没有这样的事情else if.