[gmail] Re: implenting BB variations of standard system calls

Bernhard Fischer rep.nop at aon.at
Fri Apr 21 09:00:02 UTC 2006


On Fri, Apr 21, 2006 at 08:54:33AM +0200, Marc Leeman wrote:
>> > int main(int argc, char **argv)
>> > {
>> > 	return 0;
>> > }
>> >
>> > Lot of space saved and no interface or coding style issues....a
>> > paradise!!!!
>> >
>> > ;-P
>
>Euhm, shouldn't that be
>
>#include <stdlib.h>
>
>int main(int argc, char* argv[])

That's bloated and increases compile time needlessly.
int main(void)

or, to be gentle to non ctags or non id-utils users, as suggested:
int
main(/*no_parameters*/)
/* void no_parameters; */
>{
>	return EXIT_SUCCESS;
>}
>
>:-"

;)



More information about the busybox mailing list