home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / c / 12605 < prev    next >
Encoding:
Text File  |  1992-08-20  |  936 b   |  31 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!cs.utexas.edu!asuvax!ennews!envmsa.eas.asu.edu!ptran
  3. From: ptran@envmsa.eas.asu.edu (Phi-Long Tran)
  4. Subject: Re: argv[1][1] OK, argv[1][0] Not? Huh?
  5. Message-ID: <21AUG199200454000@envmsa.eas.asu.edu>
  6. News-Software: VAX/VMS VNEWS 1.4-b1  
  7. Sender: news@ennews.eas.asu.edu (USENET News System)
  8. Organization: Arizona State University, Tempe, AZ
  9. References: <1992Aug20.222254.566@lambda.msfc.nasa.gov>
  10. Date: Fri, 21 Aug 1992 07:45:00 GMT
  11. Lines: 18
  12.  
  13. In article <1992Aug20.222254.566@lambda.msfc.nasa.gov>, 
  14. puckett@lambda.msfc.nasa.gov (Jim Puckett) writes...
  15.  
  16. >In a little application, I ran into this problem...
  17.  
  18. >if (argv[1][0] != '-' ) 
  19. >    would cause a core dump, while
  20.  
  21. >if (argv[1][1] != 'P' ) 
  22. >    wouldn't.
  23.  
  24.      If you included more of the code and a sample run, then it would shed
  25. more light on the source of the problem.
  26.  
  27. ---
  28. Phi-Long Tran
  29. ptran@asuvax.eas.asu.edu
  30. Arizona State University
  31.