0

Is there any function in a standard C library which allow one to retrieve files with a particular extension like ".c"?

Shahzad
  • 1,999
  • 6
  • 35
  • 44

1 Answers1

0

There are no standard C library functions that do that. There are platform-specific functions that do that.

EDIT: If you're on Debian, try looking up the documentation for glob or wordexp. The documentation for glob even has an example, looking up .c files, just as you wish.

ldav1s
  • 15,885
  • 2
  • 53
  • 56