Is There A Way To Check If argv[1] Is An Integer?

Eric D. Hendrickson eric at ux.acss.umn.edu
Sat Dec 16 12:26:41 AEST 1989


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 at ux.acss.umn.edu
|Minneapolis, MN  55455	  USA	    612/625-0801	    The game is afoot!



More information about the Comp.lang.c mailing list