title: check if argv contains a specific file extension
body: <p>Im working on a program in C that takes arguments as input. Is it possible to check if your argv contains a specific file extension? Like check if any char* in argv ends in .jpeg or something like that? (any example code would be greatly appreciated :) )</p>