blob: d9749e6260f2ffea99d8f54f51c4bb5360b5c75b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
*/
#define import_spp
#define import_knames
#include <iraf.h>
/* ACHT_B -- Pack SPP array into an unsigned byte array.
* [MACHDEP]: The underscore appended to the procedure name is OS dependent.
*/
void
ACHTCB (
XCHAR *a,
XCHAR *b,
XINT *npix
)
{
register XCHAR *ip;
register XUBYTE *op;
register int n = *npix;
for (ip=(XCHAR *)a, op=(XUBYTE *)b; --n >= 0; )
*op++ = *ip++;
}
|