10 |
|
Greg Ward 1 March 88, modified for arbitrary picture sizes |
11 |
|
*/ |
12 |
|
|
13 |
+ |
#include <string.h> |
14 |
+ |
|
15 |
|
#include "standard.h" |
16 |
|
#include "ciq.h" |
17 |
|
|
43 |
|
if (synth) |
44 |
|
n = makecm(nw,&na); /* analyze histogram and synthesize colormap */ |
45 |
|
else { |
46 |
< |
bcopy((char *)cm,(char *)color,sizeof color); |
46 |
> |
memcpy((void *)color,(void *)cm,sizeof color); |
47 |
|
n = nw; |
48 |
|
na = 0; |
49 |
|
for (i=0; i<len; i++) if (hist[i]) na++; |
60 |
|
draw_nodith(ocm); |
61 |
|
} |
62 |
|
|
63 |
< |
bcopy((char *)color,(char *)cm,sizeof color); |
63 |
> |
memcpy((void *)cm,(void *)color,sizeof color); |
64 |
|
/*endclosest();*/ |
65 |
|
} |
66 |
|
|