1 |
– |
/* Copyright (c) 1993 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 |
|
This program is to make series of right triangles forming hyperbolic cosin |
6 |
|
(ie, cosh) curve in between of 2 points. |
25 |
|
******************************************************************************/ |
26 |
|
|
27 |
|
#include <stdio.h> |
28 |
+ |
#include <stdlib.h> |
29 |
|
#include <math.h> |
30 |
|
|
31 |
|
char *cmtype, *cname; |
64 |
|
} |
65 |
|
|
66 |
|
|
67 |
+ |
static void |
68 |
+ |
printhead(ac, av) /* print command header */ |
69 |
+ |
register int ac; |
70 |
+ |
register char **av; |
71 |
+ |
{ |
72 |
+ |
putchar('#'); |
73 |
+ |
while (ac--) { |
74 |
+ |
putchar(' '); |
75 |
+ |
fputs(*av++, stdout); |
76 |
+ |
} |
77 |
+ |
putchar('\n'); |
78 |
+ |
} |
79 |
+ |
|
80 |
|
main (argc, argv) |
81 |
|
int argc; |
82 |
|
char *argv[]; |
137 |
|
} |
138 |
|
} |
139 |
|
|
129 |
– |
|
130 |
– |
printhead(ac, av) /* print command header */ |
131 |
– |
register int ac; |
132 |
– |
register char **av; |
133 |
– |
{ |
134 |
– |
putchar('#'); |
135 |
– |
while (ac--) { |
136 |
– |
putchar(' '); |
137 |
– |
fputs(*av++, stdout); |
138 |
– |
} |
139 |
– |
putchar('\n'); |
140 |
– |
} |