aboutsummaryrefslogtreecommitdiff
path: root/sys/osb/achtxb.c
blob: 62dd0274a239ae179c9c48a1e68d14db93c1425b (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
ACHTXB (
  XCOMPLEX  	*a,
  XCHAR	    	*b,
  XINT	    	*npix
)
{
	register XCOMPLEX	*ip;
	register XUBYTE	*op;
	register int n = *npix;

	for (ip=(XCOMPLEX *)a, op=(XUBYTE *)b;  --n >= 0;  )
		*op++ = (int) (ip++)->r;
}