1 |
– |
/* Copyright (c) 1992 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 |
|
* program to convert from RADIANCE RLE to flat format |
6 |
|
*/ |
7 |
|
|
8 |
|
#include <stdio.h> |
9 |
|
#include <math.h> |
10 |
+ |
#include <time.h> |
11 |
|
#include "color.h" |
12 |
|
#include "resolu.h" |
13 |
|
|
15 |
|
#include <fcntl.h> |
16 |
|
#endif |
17 |
|
|
20 |
– |
extern char *malloc(), *realloc(), *tempbuffer(); |
18 |
|
extern int addhline(); |
19 |
|
|
20 |
|
#define dumpheader(fp) fwrite(headlines, 1, headlen, fp) |
209 |
|
frameno = atoi(s+6); |
210 |
|
n = strlen(s); |
211 |
|
if (headlen) |
212 |
< |
headlines = (char *)realloc(headlines, headlen+n+1); |
212 |
> |
headlines = (char *)realloc((void *)headlines, headlen+n+1); |
213 |
|
else |
214 |
|
headlines = (char *)malloc(n+1); |
215 |
|
if (headlines == NULL) { |