Re: Can anyone please analyse this program for me (write a pseudocode for it).

2006-07-04 Thread John Machin
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] >

Re: Can anyone please analyse this program for me (write a pseudocode for it).

2006-07-04 Thread BJörn Lindqvist
> > /* $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

Re: Can anyone please analyse this program for me (write a pseudocode for it).

2006-07-04 Thread Steven D'Aprano
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

Re: Can anyone please analyse this program for me (write a pseudocode for it).

2006-07-03 Thread Tim Chase
> /* $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

Re: Can anyone please analyse this program for me (write a pseudocode for it).

2006-07-03 Thread BJörn Lindqvist
> 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

Can anyone please analyse this program for me (write a pseudocode for it).

2006-07-03 Thread Vusi
/* $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