sanushks> Thanks! atoi works...
Do you know what happens if atoi fails to convert?
Your first choice of using sprintf was superior, since error checking is better with it.
jephthah commented: break it down! +9
John A commented: I'll give you a cookie for trying. But sorry, it's completely valid C89; that's just an old form of a function definition. :P +18
Ancient Dragon commented: you are right :) +36
chris5126 commented: thanks the help much apreciated! +3