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 |
|
* ra_t8.c - program to convert between RADIANCE and |
6 |
|
* Targa 8-bit color-mapped images. |
10 |
|
|
11 |
|
#include <stdio.h> |
12 |
|
|
13 |
+ |
#include <time.h> |
14 |
+ |
|
15 |
|
#include "color.h" |
16 |
|
|
17 |
|
#include "resolu.h" |
26 |
|
|
27 |
|
#ifndef BSD |
28 |
|
#define bcopy(s,d,n) (void)memcpy(d,s,n) |
30 |
– |
extern char *memcpy(); |
29 |
|
#endif |
30 |
|
|
31 |
|
#define goodpic(h) (my_imType(h) && my_mapType(h)) |
193 |
|
} |
194 |
|
|
195 |
|
|
196 |
+ |
void |
197 |
|
eputs(s) |
198 |
|
char *s; |
199 |
|
{ |
201 |
|
} |
202 |
|
|
203 |
|
|
204 |
+ |
void |
205 |
|
quit(code) |
206 |
|
int code; |
207 |
|
{ |
344 |
|
if (fwritecolrs(scanline, xmax, stdout) < 0) |
345 |
|
quiterr("error writing RADIANCE file"); |
346 |
|
} |
347 |
< |
free((char *)scanline); |
348 |
< |
free((char *)tarData); |
347 |
> |
free((void *)scanline); |
348 |
> |
free((void *)tarData); |
349 |
|
} |
350 |
|
|
351 |
|
|