How to remove trailing whitespace at the end of the line in given files (more than one)?
If by useless whitespace you mean trailing whitespace at the end of the line, this will work on GNU systems:
find -name '*.c' -print0 | xargs -r0 sed -e 's/[[:blank:]]\+$//' -i
(replace *.c
with whatever your source files match)