# | 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; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |