try putting the proper prototype at line 22.
Salem commented: Would have been better if you'd stopped at the "use code tags" ;) +20
Salem commented: It's the catch of the day :) +19
halluc1nati0n commented: I didn't even think of the stack! +1
kylcrow commented: You deserve a rep bump +3