windows check line ending of file

C++
find . -not -type d -exec file "{}" ";" | grep CRLF
Source

Also in C++: