diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/osb/achtcb.c | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/osb/achtcb.c')
-rw-r--r-- | sys/osb/achtcb.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys/osb/achtcb.c b/sys/osb/achtcb.c new file mode 100644 index 00000000..d9749e62 --- /dev/null +++ b/sys/osb/achtcb.c @@ -0,0 +1,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++; +} |