1 |
– |
/* Copyright (c) 1986 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 |
|
* greyscale.c - program to produce grey test levels. |
6 |
|
* |
9 |
|
|
10 |
|
#include <stdio.h> |
11 |
|
|
12 |
+ |
#include <math.h> |
13 |
+ |
|
14 |
|
#include "color.h" |
15 |
|
|
16 |
|
|
22 |
|
char *argv[]; |
23 |
|
{ |
24 |
|
COLOR col; |
25 |
< |
double d1,d2,d3, atof(), log(); |
25 |
> |
double d1,d2,d3; |
26 |
|
int i; |
27 |
|
|
28 |
|
printargs(argc, argv, stdout); |
59 |
|
greyscale(col0) /* output our grey scale */ |
60 |
|
COLOR col0; |
61 |
|
{ |
63 |
– |
double exp(); |
62 |
|
COLOR col1, col2, scanline[512]; |
63 |
|
double x; |
64 |
|
int j; |