DragonFly BSD
DragonFly submit List (threaded) for 2004-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: ANSI-fy of ranlib, ruptime and rdist [patches]


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 23 Jul 2004 10:03:44 -0700 (PDT)

:On 23.07.2004, at 09:29, Jeroen Ruigrok/asmodai wrote:
:> Also I used int main(int argc, char *argv[]) instead of int main(int 
:> argc, char **argv), since the former is, in my opinion, more easily 
:> read as being an array of pointers to char.
:
:heh, then you disagree with matt about that, and with style(9).
:
:just a note :)
:
:cheers
:   simon

    I'd tend to rather have people stick with char **argv instead of
    char *argv[], the issue being that the passing of array types 
    as arguments is a rare occurance these days generally due to the
    confusion it creates due to both the right hand notation of the
    array, and the fact that the C just converts it back to a pointer
    when used as an argument to a function.

						-Matt



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]