programming challenge (silly)

Blair P. Houghton bph at buengc.BU.EDU
Wed Mar 29 03:47:20 AEST 1989


In article <1866 at se-sd.sandiego.ncr.com> rns at se-sd.sandiego.NCR.COM (Rick Schubert(AEP)) writes:
>
>I believe that
>	argc == 0 && argv[0] == NULL
>is intended for the case where the implementation has no access to
>the command line (or there is no command line), whereas
>	argc > 0 && argv[0] == ""
>is intended for the case where the implementation has access to the command
>line but not to the program name.

I get it.  One is a null pointer, and the other is a pointer-to-a-null...

				--Blair



More information about the Comp.lang.c mailing list