1 |
< |
/* |
1 |
> |
/* Copyright (c) 1989 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
5 |
|
#endif |
6 |
+ |
|
7 |
+ |
/* |
8 |
|
* genbranch.c - program to generate 3D Christmas tree branches. |
9 |
|
* |
10 |
|
* 8/23/86 |
12 |
|
|
13 |
|
#include <stdio.h> |
14 |
|
|
15 |
+ |
#include <math.h> |
16 |
+ |
|
17 |
|
#include "random.h" |
18 |
|
|
19 |
|
#define errf() (var*(0.5-frandom())) |
32 |
|
|
33 |
|
double var = 0.3; /* variability */ |
34 |
|
|
35 |
+ |
#ifdef DCL_ATOF |
36 |
+ |
extern double atof(); |
37 |
+ |
#endif |
38 |
|
|
39 |
+ |
|
40 |
|
main(argc, argv) |
41 |
|
int argc; |
42 |
|
char *argv[]; |
43 |
|
{ |
36 |
– |
double atof(); |
44 |
|
int i, j; |
45 |
|
|
46 |
|
for (i = 1; i < argc && argv[i][0] == '-'; i++) |