| 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) | 
| 196 | 
  | 
} | 
| 197 | 
  | 
 | 
| 198 | 
  | 
 | 
| 199 | 
+ | 
int | 
| 200 | 
  | 
addhline(s)                     /* add a line to our info. header */ | 
| 201 | 
  | 
char    *s; | 
| 202 | 
  | 
{ | 
| 218 | 
  | 
        } | 
| 219 | 
  | 
        strcpy(headlines+headlen, s); | 
| 220 | 
  | 
        headlen += n; | 
| 221 | 
+ | 
        return(0); | 
| 222 | 
  | 
} | 
| 223 | 
  | 
 | 
| 224 | 
  | 
 |