Path: utzoo!attcan!uunet!cs.utexas.edu!wuarchive!udel!princeton!grendel!rhl From: rhl@grendel.Princeton.EDU (Robert Lupton (the Good)) Newsgroups: comp.std.c Subject: Re: "1234" ==> 1234 (char * ==> int): Inappropriate Postings Summary: To Post or Not to Post Message-ID: <4712@idunno.Princeton.EDU> Date: 13 Dec 90 15:10:36 GMT References: <1990Dec12.215359.5378@cs.utk.edu> <49268@seismo.CSS.GOV> Sender: news@idunno.Princeton.EDU Organization: Princeton University, Princeton, New Jersey Lines: 13 This is one of those questions that any experienced C programmer can answer before starting to think about it: atoi()or atol(). It is also an obvious RTFM question, and is discussed in some depth in K&R. Please, in cases like this DON'T post the answer -- email it if you must reply. Some of the posted answers were not really correct, but this doesn't invalidate my point, merely adds another: Please don't post answers if you aren't pretty much of an expert yourself. Robert