question about findfirst function when compiled with clang on MacOS

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