1 |
– |
/* Copyright (c) 1988 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Send pictures to PC animation system. |
6 |
|
* |
8 |
|
*/ |
9 |
|
|
10 |
|
#include <stdio.h> |
11 |
+ |
#include <string.h> |
12 |
|
|
13 |
|
#include "random.h" |
14 |
|
#include "color.h" |
116 |
|
xbeg = (SCANLINE-xres)/2; |
117 |
|
ybeg = (NUMSCANS-yres)/2; |
118 |
|
/* clear output */ |
119 |
< |
bzero(sc_frame_arr, sizeof(sc_frame_arr)); |
119 |
> |
memset(sc_frame_arr, '\0', sizeof(sc_frame_arr)); |
120 |
|
/* get frame */ |
121 |
|
for (y = yres-1; y >= 0; y--) { |
122 |
|
if (freadcolrs(scanin, xres, fp) < 0) { |