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

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