No need to place variable at top of function (C99). Closest to use and scoped down is better.