[BusyBox 0000980]: patch to avoid "broadcast +" syntax

Paul Fox pgf at brightstareng.com
Tue Nov 28 11:25:07 PST 2006


 > On Monday 27 November 2006 1:02 pm, Roberto A. Foglietta wrote:
 > > argv is a vector which is not limited by argc so *++argv is always a
 > > good pointer which could be randomly NULL or not.
 > 
 > No, argv[argc] should be NULL and none of the ones before it
 > should be.  It's not random, argc is redundant and argv[] is a
 > null terminated array of char pointers.

while that may be true for linux, and/or most unix
implementations, harbison and steele say:  "The value of
argv[argc] may be a null pointer, but is not so in all
implementations."  (p. 372 of the 2nd edition)

(which says nothing about what happens when you walk off the
end, of course.)

paul
=---------------------
 paul fox, pgf at brightstareng.com


More information about the busybox mailing list