Re: How important is software maintenance?
- From: Pascal Bourguignon <pjb@xxxxxxxxxxxxxxxxx>
- Date: Tue, 24 Jul 2007 14:10:55 +0200
Richard Heathfield <rjh@xxxxxxxxxxxxxxx> writes:
Pascal Bourguignon said:
Any program starts as:
int main(void){
return(0);
}
Not on my watch, it doesn't. For one thing, unnecessary parentheses
should be eschewed. More importantly, most of the programs I write
nowadays make heavy use of libraries that I wrote some time ago, so
there's a case for saying that main() is how the program ends, rather
than how it starts.
So the second version is:
#include <lib1.h>
#include <lib2.h>
#include <lib3.h>
int main(void){
lib1_init();
lib2_init();
lib3_init();
return(0); // I like parentheses! ;-)
}
--
__Pascal Bourguignon__ http://www.informatimago.com/
"Remember, Information is not knowledge; Knowledge is not Wisdom;
Wisdom is not truth; Truth is not beauty; Beauty is not love;
Love is not music; Music is the best." -- Frank Zappa
.
- References:
- How important is software maintenance?
- From: martinig
- Re: How important is software maintenance?
- From: John Slimick
- Re: How important is software maintenance?
- From: Pascal Bourguignon
- Re: How important is software maintenance?
- From: Richard Heathfield
- How important is software maintenance?
- Prev by Date: Re: How important is software maintenance?
- Next by Date: any suggestions about the book "Introduction To Distributed Algorithms" by Gerard Tel?
- Previous by thread: Re: How important is software maintenance?
- Next by thread: Re: How important is software maintenance?
- Index(es):
Relevant Pages
|