Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #112267

Re: [poll/chitchat] What's the best main(){...} ?

From David Brown <david.brown@hesbynett.no>
Newsgroups comp.lang.c
Subject Re: [poll/chitchat] What's the best main(){...} ?
Date 2017-06-15 17:35 +0200
Organization A noiseless patient Spider
Message-ID <ohu9a5$rb$1@dont-email.me> (permalink)
References <035a57fe-e933-498a-a0a9-b7a4e4dc41f1@googlegroups.com> <ohu4pb$ef4$3@dont-email.me> <842867d4-2ef8-4a5b-b0eb-49dca2b6f5f3@googlegroups.com>

Show all headers | View raw


On 15/06/17 16:35, Rick C. Hodgin wrote:
> On Thursday, June 15, 2017 at 10:18:53 AM UTC-4, David Brown wrote:
>> My usual setup has a pattern like :
>>
>> int main(void) {
>> 	init();
>> 	while (true) {
>> 		run();
>> 	}
>> }
> 
> Does the usual support call at your support desk go something like
> this:
> 
>     "Yes, I keep clicking the exit button, but it doesn't do
>      anything.  It just stays in the program.  I have to use
>      a task manager to get the app to forcibly terminate.  It's
>      extremely frustrating."
> 

No.

Nor do customers ring and say that their robot submarine needs to be
turned on and off again to make it go for a second dive.

Different types of task have different requirements - very few of the
programs I write (for customers) are designed to do a task and then
stop.  Even the gui programs on PC's are typically run until the PC is
killed by a power cut (though they do have an option to exit!).

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[poll/chitchat] What's the best main(){...} ? luser droog <luser.droog@gmail.com> - 2017-06-14 22:30 -0700
  Re: [poll/chitchat] What's the best main(){...} ? Melzzzzz <Melzzzzz@zzzzz.com> - 2017-06-15 06:14 +0000
    Re: [poll/chitchat] What's the best main(){...} ? luser droog <luser.droog@gmail.com> - 2017-06-15 00:06 -0700
    Re: [poll/chitchat] What's the best main(){...} ? scott@slp53.sl.home (Scott Lurndal) - 2017-06-15 12:43 +0000
      Re: [poll/chitchat] What's the best main(){...} ? "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2017-06-15 06:32 -0700
        Re: [poll/chitchat] What's the best main(){...} ? scott@slp53.sl.home (Scott Lurndal) - 2017-06-15 14:03 +0000
          Re: [poll/chitchat] What's the best main(){...} ? James Kuyper <jameskuyper@verizon.net> - 2017-06-15 10:07 -0400
      Re: [poll/chitchat] What's the best main(){...} ? Ben Bacarisse <ben.usenet@bsb.me.uk> - 2017-06-15 15:47 +0100
      Re: [poll/chitchat] What's the best main(){...} ? Tim Rentsch <txr@alumni.caltech.edu> - 2017-06-16 23:47 -0700
    Re: [poll/chitchat] What's the best main(){...} ? "Mr. Man-wai Chang" <toylet.toylet@gmail.com> - 2017-06-16 18:32 +0800
  Re: [poll/chitchat] What's the best main(){...} ? "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2017-06-15 06:31 -0700
  Re: [poll/chitchat] What's the best main(){...} ? David Brown <david.brown@hesbynett.no> - 2017-06-15 16:18 +0200
    Re: [poll/chitchat] What's the best main(){...} ? "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2017-06-15 07:35 -0700
      Re: [poll/chitchat] What's the best main(){...} ? David Brown <david.brown@hesbynett.no> - 2017-06-15 17:35 +0200
        Re: [poll/chitchat] What's the best main(){...} ? "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2017-06-15 08:41 -0700
          Re: [poll/chitchat] What's the best main(){...} ? David Brown <david.brown@hesbynett.no> - 2017-06-15 21:18 +0200
            Re: [poll/chitchat] What's the best main(){...} ? "Rick C. Hodgin" <rick.c.hodgin@gmail.com> - 2017-06-15 12:39 -0700
            Re: [poll/chitchat] What's the best main(){...} ? David Kleinecke <dkleinecke@gmail.com> - 2017-06-15 19:58 -0700
        Re: [poll/chitchat] What's the best main(){...} ? Richard Heathfield <rjh@cpax.org.uk> - 2017-06-15 17:01 +0100
          Re: [poll/chitchat] What's the best main(){...} ? Melzzzzz <Melzzzzz@zzzzz.com> - 2017-06-15 16:13 +0000
            Re: [poll/chitchat] What's the best main(){...} ? Richard Heathfield <rjh@cpax.org.uk> - 2017-06-15 17:42 +0100
              Re: [poll/chitchat] What's the best main(){...} ? David Brown <david.brown@hesbynett.no> - 2017-06-15 21:21 +0200
                Re: [poll/chitchat] What's the best main(){...} ? Gareth Owen <gwowen@gmail.com> - 2017-06-15 20:48 +0100
                Re: [poll/chitchat] What's the best main(){...} ? Richard Heathfield <rjh@cpax.org.uk> - 2017-06-15 20:55 +0100

csiph-web