I'm passing parameters into a small program in C but need to perform a listing of the current working directory, I've been using quite abit of bash so this was pretty simple with ls.
What's the equivalent to this in C?
So far the only sort of function I can think of is to loop through with something like scandir?
Thanks
What's the equivalent to this in C?
So far the only sort of function I can think of is to loop through with something like scandir?
Thanks