1 |
– |
/* Copyright (c) 1989 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 |
|
* genbranch.c - program to generate 3D Christmas tree branches. |
6 |
|
* |
9 |
|
|
10 |
|
#include <stdio.h> |
11 |
|
|
12 |
+ |
#include <stdlib.h> |
13 |
+ |
|
14 |
+ |
#include <math.h> |
15 |
+ |
|
16 |
|
#include "random.h" |
17 |
|
|
18 |
|
#define errf() (var*(0.5-frandom())) |
18 |
– |
|
19 |
– |
#ifndef atof |
20 |
– |
extern double atof(); |
21 |
– |
#endif |
19 |
|
|
20 |
|
double bstart[3] = {0.0, 0.0, 0.0}; /* start of branch */ |
21 |
|
double bend[3] = {28.0, 8.0, 0.0}; /* end of branch */ |