blob: 975923ebd9fecce38f93a3356b383702e2466fd6 (
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.
*/
#include <stdio.h>
#define import_kernel
#define import_knames
#define import_spp
#include <iraf.h>
/* ZLOCVA -- Return the address of a variable or array element in XCHAR units.
* Must be able to do signed arithmetic on the integer value returned.
* We ASSUME that XCHAR through XDOUBLE are addressed in the same units.
* The transformation from a machine address into a "location" is machine
* dependent, and is given by the macro ADDR_TO_LOC defined in kernel.h.
*/
int
ZLOCVA (
XCHAR *variable,
XINT *location
)
{
*location = ADDR_TO_LOC (variable);
return (XOK);
}
|