1 |
– |
/* Copyright (c) 1995 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 |
|
* Generate an analog clock. |
6 |
|
*/ |
7 |
|
|
8 |
|
#include <stdio.h> |
9 |
+ |
#include <stdlib.h> |
10 |
|
#include <math.h> |
11 |
|
#include <ctype.h> |
12 |
|
|
13 |
|
#define PI 3.14159265358979323846 |
14 |
|
|
17 |
– |
#ifdef DCL_ATOF |
18 |
– |
extern double atof(); |
19 |
– |
#endif |
20 |
– |
|
15 |
|
#define FACEBITMAP "clockface.hex" |
16 |
|
|
17 |
|
char myfacemat[] = "white_plastic"; |
101 |
|
printf("\n%s ring %s.case_front\n", casemat, name); |
102 |
|
printf("0\n0\n8\t.12\t0\t0\n\t1\t0\t0\n\t1\t1.1\n"); |
103 |
|
printf("\n%s cylinder %s.case_inner\n", casemat, name); |
104 |
< |
printf("0\n0\n7\t.05\t0\t0\n\t.15\t0\t0\n\t1\n"); |
104 |
> |
printf("0\n0\n7\t.05\t0\t0\n\t.12\t0\t0\n\t1\n"); |
105 |
|
printf("\nclock_crystal ring %s.crystal\n", name); |
106 |
|
printf("0\n0\n8\t.10\t0\t0\n\t1\t0\t0\n\t0\t1\n"); |
107 |
|
printf("\nclock_face_paint ring %s.face\n", name); |