[Courses] [C] *sigh* one last question =)

Shuying shuyingw at cse.unsw.EDU.AU
Sat Dec 7 23:59:21 EST 2002


atoi is your friend. :)

--Shuying

On Fri, 6 Dec 2002, Morgon Kanter wrote:

> 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;
> _______________________________________________
> Courses mailing list
> Courses at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/courses
>






More information about the Courses mailing list