ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/bcopy.c
(Generate patch)

Comparing ray/src/common/bcopy.c (file contents):
Revision 1.4 by greg, Tue May 13 17:58:32 2003 UTC vs.
Revision 1.5 by schorsch, Fri Nov 14 17:22:06 2003 UTC

# Line 8 | Line 8 | static const char      RCSid[] = "$Id$";
8   #include "copyright.h"
9  
10  
11 < bcopy(src, dest, nbytes)
12 < register char   *src, *dest;
13 < register int    nbytes;
11 > bcopy(
12 > register char *src,
13 > register char *dest,
14 > register int  nbytes
15 > )
16   {
17          while (nbytes-- > 0)
18                  *dest++ = *src++;
19   }
20  
21  
22 < bzero(b, nbytes)
23 < register char   *b;
24 < register int    nbytes;
22 > bzero(
23 > register char   *b,
24 > register int    nbytes
25 > )
26   {
27          while (nbytes-- > 0)
28                  *b++ = 0;
# Line 27 | Line 30 | register int   nbytes;
30  
31  
32   int
33 < bcmp(b1, b2, nbytes)
34 < register unsigned char  *b1, *b2;
35 < register int    nbytes;
33 > bcmp(
34 > register unsigned char *b1,
35 > register unsigned char *b2,
36 > register int    nbytes
37 > )
38   {
39          while (nbytes-- > 0)
40                  if (*b1++ - *b2++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines