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

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