I want to make a encryption program that will accept directories and wildcards on the command line, such as: encrypt /home/* or encrypt /home/???.jpg. If this is platform specific, I'm using linux. What headers and functions can I use to locate a match? Algorithm would be something like: move to directory specified, get first filename, if it's a match call encrypt function, get next filename, repeat.