"1234" ==> 1234 (char * ==> int)

Alton Harkcom harkcom at potato.pa.Yokogawa.Co.jp
Fri Dec 14 04:46:48 AEST 1990


In article <1990Dec12.215359.5378 at cs.utk.edu> lape at .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 at pa.yokogawa.co.jp
	Yokogawa Electric Corporation, Tokyo, Japan



More information about the Comp.lang.c mailing list