10 |
|
* 3/26/86 |
11 |
|
*/ |
12 |
|
|
13 |
< |
#include <stdio.h> |
13 |
> |
#include "rtio.h" |
14 |
|
#include <stdlib.h> |
15 |
– |
#include <string.h> |
15 |
|
#include <math.h> |
16 |
|
#include <ctype.h> |
17 |
|
#include "sun.h" |
86 |
|
void userror(char *msg); |
87 |
|
double normsc(void); |
88 |
|
int cvthour(char *hs); |
90 |
– |
void printhead(int ac, char **av); |
89 |
|
|
90 |
|
|
91 |
|
int |
182 |
|
"%s: warning - %.1f hours btwn. standard meridian and longitude\n", |
183 |
|
progname, (s_longitude-s_meridian)*12/PI); |
184 |
|
|
185 |
< |
printhead(argc, argv); |
185 |
> |
fputs("# ", stdout); |
186 |
> |
printargs(argc, argv, stdout); |
187 |
|
|
188 |
|
computesky(); |
189 |
|
printsky(); |
418 |
|
fprintf(stderr, " %s", tzone[i].zname); |
419 |
|
putc('\n', stderr); |
420 |
|
exit(1); |
422 |
– |
} |
423 |
– |
|
424 |
– |
|
425 |
– |
void |
426 |
– |
printhead( /* print command header */ |
427 |
– |
int ac, |
428 |
– |
char **av |
429 |
– |
) |
430 |
– |
{ |
431 |
– |
putchar('#'); |
432 |
– |
while (ac--) { |
433 |
– |
putchar(' '); |
434 |
– |
fputs(*av++, stdout); |
435 |
– |
} |
436 |
– |
putchar('\n'); |
421 |
|
} |