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

Comparing ray/src/cv/mgf2meta.c (file contents):
Revision 2.6 by greg, Sat Feb 22 02:07:23 2003 UTC vs.
Revision 2.7 by schorsch, Mon Jun 30 14:59:11 2003 UTC

# Line 7 | Line 7 | static const char      RCSid[] = "$Id$";
7  
8   #include <stdio.h>
9   #include <stdlib.h>
10 + #include <string.h>
11   #include <math.h>
12   #include "random.h"
13   #include "mgflib/parser.h"
# Line 111 | Line 112 | short  hshtab[HTBLSIZ][4];             /* done line segments */
112  
113   newlayer()                              /* start a new layer */
114   {
115 < #ifdef BSD
115 <        bzero((char *)hshtab, sizeof(hshtab));
116 < #else
117 <        (void)memset((char *)hshtab, 0, sizeof(hshtab));
118 < #endif
115 >        (void)memset((char *)hshtab, '\0', sizeof(hshtab));
116          if (++layer >= 16) {
117                  mendpage();
118                  layer = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines