From: "姜华" <jh2012626@xxxxxxxxx>
strcat(p_path,&p_dir->d_name); qwe.c:37: warning: passing argument 2 of ‘strcat’ from incompatible pointer type p_dir 是结构体指针,d_name 是成员。p_path 是char *类型指针。char *p_path; 哪里不匹配?求解
d_name 是 char 类型 的数组吧。如果需要再来一个 & 取地址符?
Learning, Just As Your Favourite Thing! Maillist, See http://www.juliantec.info/mlist/mail-lists.html JulBlog, See http://www.juliantec.info/julblog/summary.php JulWiki, See http://www.juliantec.info/wiki/ JulJob, see http://www.juliantec.info/juljob/