[cfe-dev] question about findfirst function when compiled with clang on MacOS

Bin, Qingyuan qbin at dolby.com
Fri Jun 5 07:57:12 PDT 2015


Dear clang developers,

I have a question about the API of C library.
Is there a function findfirst which find the specified file ?
I have already included <sys/dir.h>.
My example code is :

#include <stdlib.h>
#include <stdio.h>
#include <sys/dir.h>


Void main()
{

Int done ;
Struct ffblk fileblk;

Done = findfirst("*.txt", &fileblk,0  )

}

When I compiled , the compier complains with " use of undeclared indentifier 'findfirst' ".

Is there a solution about that problem ?  Thanks lot ! Looking forward for your reply.







Qingyuan Bin


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150605/ab33fc1c/attachment.html>


More information about the cfe-dev mailing list