On 5/07/2006 1:09 AM, Steven D'Aprano wrote:
> On Mon, 03 Jul 2006 06:20:36 -0700, Vusi wrote:
>
>> /* $Id: dotquad.c 3529 2005-10-01 10:15:22Z dyoung $ */
>> /*
>> * Copyright (c) 2003, 2004 David Young. All rights reserved.
>> *
>> * This code was written by David Young.
>
> [snip code]
>
> > /* $Id: dotquad.c 3529 2005-10-01 10:15:22Z dyoung $ */
> > /*
> > * Copyright (c) 2003, 2004 David Young. All rights reserved.
> > *
> > * This code was written by David Young.
>
> [snip code]
>
> Am I the only one who found it hilarious that this piece of code was made
> up of 24 lines of
On Mon, 03 Jul 2006 06:20:36 -0700, Vusi wrote:
> /* $Id: dotquad.c 3529 2005-10-01 10:15:22Z dyoung $ */
> /*
> * Copyright (c) 2003, 2004 David Young. All rights reserved.
> *
> * This code was written by David Young.
[snip code]
Am I the only one who found it hilarious that this piece of
> /* $Id: dotquad.c 3529 2005-10-01 10:15:22Z dyoung $ */
Well, let's begin here. You've got your python commenting style
all wrong. This alone won't parse as python. I recommend using
the standard "#" comment notation as described in the python docs.
> if (argc != 2 || !inet_aton(argv
> void
> usage(const char *proggie)
> {
> errx(EXIT_FAILURE, "Usage: %s ", proggie);
> }
>
> int
> main(int argc, char **argv)
> {
> struct in_addr addr;
>
> if (argc != 2 || !inet_aton(argv[1], &addr)) {
> usage(argv[0]);
> }
>
> (void)printf
/* $Id: dotquad.c 3529 2005-10-01 10:15:22Z dyoung $ */
/*
* Copyright (c) 2003, 2004 David Young. All rights reserved.
*
* This code was written by David Young.
*
* Redistribution and use in source and binary forms, with or
* without modification, are permitted provided that the following