C言語でglob ref: http://qiita.com/sassy_watson/items/03c16bd03b56e5579477