Path: utzoo!attcan!uunet!cs.utexas.edu!uwm.edu!uwvax!umn-d-ub!umn-cs!ux.acss!eric From: eric@ux.acss.umn.edu (Eric D. Hendrickson) Newsgroups: comp.lang.c Subject: Is There A Way To Check If argv[1] Is An Integer? Message-ID: <984@ux.acss.umn.edu> Date: 16 Dec 89 01:26:41 GMT Reply-To: eric@ux.acss.umn.edu (Eric D. Hendrickson) Organization: Frobozz Magic Amulet of Yendor Company Lines: 10 I need a way to determine if argv[1] (or any argument) is an integer. How can this be done? isdigit(c) will only accept integers, and argv is char. Yours, -Eric Hendrickson -- /----------"Oh carrots are divine, you get a dozen for dime, its maaaagic."--- |Eric (the "Mentat-Philosopher") Hendrickson University of Minnesota |1 Lind Hall; 207 Church Street S.E., Internet: eric@ux.acss.umn.edu |Minneapolis, MN 55455 USA 612/625-0801 The game is afoot!