| 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 |
|
* Find extrema points in a Radiance picture. |
| 6 |
|
*/ |
| 19 |
|
|
| 20 |
|
COLOR expos = WHTCOLOR; |
| 21 |
|
|
| 25 |
– |
extern char *malloc(); |
| 22 |
|
|
| 27 |
– |
|
| 23 |
|
headline(s) /* check header line */ |
| 24 |
|
char *s; |
| 25 |
|
{ |
| 29 |
|
|
| 30 |
|
if (isformat(s)) { /* format */ |
| 31 |
|
formatval(fmt, s); |
| 32 |
< |
wrongformat = strcmp(fmt, COLRFMT); |
| 32 |
> |
wrongformat = !globmatch(PICFMT, fmt); |
| 33 |
|
} |
| 34 |
|
if (!orig) |
| 35 |
|
return(0); |
| 106 |
|
} |
| 107 |
|
} |
| 108 |
|
} |
| 109 |
< |
free((char *)scan); |
| 109 |
> |
free((void *)scan); |
| 110 |
|
printf("%d %d\t%e %e %e\n", xmin, ymin, |
| 111 |
|
colrval(cmin,RED)/colval(expos,RED), |
| 112 |
|
colrval(cmin,GRN)/colval(expos,GRN), |