[Courses] [C] *sigh* one last question =)
Ganesh Swami
ganesh at rapidtech.bc.ca
Fri Dec 6 20:00:21 EST 2002
hello,
Morgon Kanter wanted us to know:
> I've been looking through the man pages but have been unable to find this:
> Is there any function in the C standard library to change a string value to
> an int? (please remind me if I'm forgetting something obvious =)
>
> Because the following does not work:
> char a[3] = "98;
> int b;
> b = c;
What is c ? Did you mean a ?
Use atoi()
-- Ganesh
--
: _ /~\'_
(o o)
=====oooO==U==Oooo================[Ganesh Swami]==========
Air conditioned environment - Do not open Windows.
More information about the Courses
mailing list