File:  [MW Coherent from dump] / coherent / a / usr / man / ALL / do
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



do                          C Keyword                          do




Introduce a loop


do is  a C control statement that introduces  a loop.  Unlike for
and while  loops, the condition  in a do loop  is evaluated after
the  operation is  performed.   do always  works  in tandem  with
while; for example


do {
        puts("Next entry? ");
        fflush(stdout);
} while(getchar() != EOF);


prints a  prompt on the screen  and waits for the  user to reply.
The do  loop is  convenient in  this instance because  the prompt
must appear at least once on the screen before the user replies.

***** See Also *****

break, C keywords, continue, while


































COHERENT Lexicon                                           Page 1



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.