perl -p -i -e 's/\ +$//' $(find . -name "*.[ch]" -print)

Trailing whitespace is annoying