Added function to create a gitignore for C projects
Moved nonwhitespace character count to func
style fix