Google Groups Home
Help | Sign in
Message from discussion Explanation, please!
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Daniel R. Levy  
View profile
 More options Aug 25 1988, 7:39 pm
Newsgroups: comp.lang.c
From: l...@ttrdc.UUCP (Daniel R. Levy)
Date: 25 Aug 88 23:39:20 GMT
Local: Thurs, Aug 25 1988 7:39 pm
Subject: Re: Explanation, please!
< void send(int *to,int *from, int count) {
<    int n = (count + 7) / 8;
<    
<    switch(count % 8) {
<       case 0:  do { *to++ = *from++;
<       case 7:       *to++ = *from++;
<       case 6:       *to++ = *from++;
<       case 5:       *to++ = *from++;
<       case 4:       *to++ = *from++;
<       case 3:       *to++ = *from++;
<       case 2:       *to++ = *from++;
<       case 1:       *to++ = *from++;
<                } while (--n > 0);
<    }
< }

Question:  what if count==0?
--
|------------Dan Levy------------|  THE OPINIONS EXPRESSED HEREIN ARE MINE ONLY
| Bell Labs Area 61 (R.I.P., TTY)|  AND ARE NOT TO BE IMPUTED TO AT&T.
|        Skokie, Illinois        |
|-----Path:  att!ttbcad!levy-----|


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google