home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!cs.utexas.edu!asuvax!ennews!envmsa.eas.asu.edu!ptran
- From: ptran@envmsa.eas.asu.edu (Phi-Long Tran)
- Subject: Re: argv[1][1] OK, argv[1][0] Not? Huh?
- Message-ID: <21AUG199200454000@envmsa.eas.asu.edu>
- News-Software: VAX/VMS VNEWS 1.4-b1
- Sender: news@ennews.eas.asu.edu (USENET News System)
- Organization: Arizona State University, Tempe, AZ
- References: <1992Aug20.222254.566@lambda.msfc.nasa.gov>
- Date: Fri, 21 Aug 1992 07:45:00 GMT
- Lines: 18
-
- In article <1992Aug20.222254.566@lambda.msfc.nasa.gov>,
- puckett@lambda.msfc.nasa.gov (Jim Puckett) writes...
-
- >In a little application, I ran into this problem...
-
- >if (argv[1][0] != '-' )
- > would cause a core dump, while
-
- >if (argv[1][1] != 'P' )
- > wouldn't.
-
- If you included more of the code and a sample run, then it would shed
- more light on the source of the problem.
-
- ---
- Phi-Long Tran
- ptran@asuvax.eas.asu.edu
- Arizona State University
-