I want to make a program but therefor i need to know how ik can make a file listing script (in C).

Can someone tell me how i can make a file listing script which print the files on the screen or at least in an array?

Excuse for my bad english but i'm actually a dutch person.