Xref: utzoo comp.std.c:4030 comp.lang.c:34731 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!ccut!wnoc-tyo-news!dclsic!sjc!spider!leia!harkcom From: harkcom@potato.pa.Yokogawa.Co.jp (Alton Harkcom) Newsgroups: comp.std.c,comp.lang.c Subject: Re: "1234" ==> 1234 (char * ==> int) Message-ID: Date: 13 Dec 90 17:46:48 GMT References: <1990Dec12.215359.5378@cs.utk.edu> Sender: news@leia.pa.yokogawa.co.jp Followup-To: comp.std.c Organization: Yokogawa Electric Corporation, Tokyo, Japan. Lines: 11 In-reply-to: lape@.cs.utk.edu's message of 12 Dec 90 21:53:59 GMT In article <1990Dec12.215359.5378@cs.utk.edu> lape@.cs.utk.edu (Bryon S. Lape) writes: =} I need to know how to convert a string of numbers into an int. =}For example, "1234" ==> 1234. I am interested in all theories, so please =}send whatever you know or think. Also, please e-mail the responses. If you don't have atoi, you can look at page 97 of K&R (2nd ed. ANSI C). -- -- harkcom@pa.yokogawa.co.jp Yokogawa Electric Corporation, Tokyo, Japan