Damn you guys are fast, I didn't even get my list up before the two of
you replied. :)
Missed the returning a local, I think that's definitely one that was
intended being one of the 7. So that's 6.
Not sure about the missing void from the function prototype though.
gcc will compile it without complaint, so I think it falls more under
the category of "poor style" rather than "error in the code".
I think the lack of checking the return value of scanf *might* be #7,
though honestly until I read Paul's post I didn't even realize scanf
returned a value (shows you how much I use that function). :p
Thanks,
Adam