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

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