sigh... that is to be a programmer
https://www.facebook.com/photo.php?fbid=532350683480481&set=pb.241806149201604.-2207520000.1375471668.&type=3&theater
except me: i have never written code with a bug... the compiler just optimized it wrong ;)
The main difference is that the specification for the files you're looking for are not hard coded into the function (which is the design alluded to.) It is good to have flexible code.
[Edit: One other notable difference is that I used the xxxA version of the find functions which means the code won't break if compiler settings are changed and unicode is enabled.]