blob: 97100747f4806667b6f73feb43a49eb37430754c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* See LICENSE file for copyright and license details. */
#include "common.h"
USAGE("(X Y Z | Y)")
int
main(int argc, char *argv[])
{
double X, Y, Z;
UNOFLAGS(0);
if (argc == 1) {
Y = etolf_arg("the Y value", argv[0]);
X = Y * D65_XYZ_X;
Z = Y * D65_XYZ_Z;
printf("%.50lf %.50lf %.50lf\n", X, Y, Z);
} else if (argc == 3) {
printf("%s %s %s\n", argv[0], argv[1], argv[2]);
} else {
usage();
}
efshut(stdout, "<stdout>");
return 0;
}
|