1 |
– |
/* Copyright (c) 1986 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 |
|
* psum.c - program to sum pictures. |
6 |
|
* |
9 |
|
|
10 |
|
#include <stdio.h> |
11 |
|
|
12 |
+ |
#include <math.h> |
13 |
+ |
|
14 |
|
#include "color.h" |
15 |
|
|
16 |
|
|
26 |
|
int nfile; /* number of files */ |
27 |
|
|
28 |
|
|
29 |
+ |
int |
30 |
|
tabputs(s) /* print line preceded by a tab */ |
31 |
|
char *s; |
32 |
|
{ |
33 |
|
putc('\t', stdout); |
34 |
< |
fputs(s, stdout); |
34 |
> |
return(fputs(s, stdout)); |
35 |
|
} |
36 |
|
|
37 |
|
|
152 |
|
quit(1); |
153 |
|
} |
154 |
|
} |
155 |
< |
free((char *)scanin); |
156 |
< |
free((char *)scanout); |
155 |
> |
free((void *)scanin); |
156 |
> |
free((void *)scanout); |
157 |
|
} |
158 |
|
|
159 |
|
|
160 |
+ |
void |
161 |
|
quit(code) /* exit gracefully */ |
162 |
|
int code; |
163 |
|
{ |