| 1 |
/*=========================================================================== |
| 2 |
Copyright (C) 1995-2009 European Southern Observatory (ESO) |
| 3 |
|
| 4 |
This program is free software; you can redistribute it and/or |
| 5 |
modify it under the terms of the GNU General Public License as |
| 6 |
published by the Free Software Foundation; either version 2 of |
| 7 |
the License, or (at your option) any later version. |
| 8 |
|
| 9 |
This program is distributed in the hope that it will be useful, |
| 10 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
GNU General Public License for more details. |
| 13 |
|
| 14 |
You should have received a copy of the GNU General Public |
| 15 |
License along with this program; if not, write to the Free |
| 16 |
Software Foundation, Inc., 675 Massachusetts Ave, Cambridge, |
| 17 |
MA 02139, USA. |
| 18 |
|
| 19 |
Correspondence concerning ESO-MIDAS should be addressed as follows: |
| 20 |
Internet e-mail: [email protected] |
| 21 |
Postal address: European Southern Observatory |
| 22 |
Data Management Division |
| 23 |
Karl-Schwarzschild-Strasse 2 |
| 24 |
D 85748 Garching bei Muenchen |
| 25 |
GERMANY |
| 26 |
===========================================================================*/ |
| 27 |
|
| 28 |
/* iii.fc |
| 29 |
|
| 30 |
.VERSION |
| 31 |
|
| 32 |
090611 last modif |
| 33 |
|
| 34 |
*/ |
| 35 |
|
| 36 |
#include <stdlib.h> |
| 37 |
#include <string.h> |
| 38 |
|
| 39 |
int mm; |
| 40 |
|
| 41 |
char *ptr1; |
| 42 |
char *loc_pntr(); |
| 43 |
char *strp_pntr(); |
| 44 |
|
| 45 |
/* |
| 46 |
|
| 47 |
*/ |
| 48 |
|
| 49 |
/*==========================================================================*/ |
| 50 |
|
| 51 |
/*** idst = IIIGSE_C(dsplay,evalno,kstring,ll) ***/ |
| 52 |
|
| 53 |
ROUTINE III1(dsplay,evalno,ll,idst) |
| 54 |
int *dsplay; |
| 55 |
int *evalno; |
| 56 |
int *ll; |
| 57 |
int *idst; |
| 58 |
|
| 59 |
{ |
| 60 |
int n, IIIGSE_C(); |
| 61 |
|
| 62 |
ptr1 = loc_pntr(1,&mm); /* get location of "kstring" */ |
| 63 |
|
| 64 |
*idst = IIIGSE_C(*dsplay,*evalno,ptr1,ll); |
| 65 |
|
| 66 |
n = (int) strlen(ptr1); |
| 67 |
if ((n > 0) && (n < mm)) *(ptr1+n) = ' '; |
| 68 |
|
| 69 |
return 0; |
| 70 |
} |
| 71 |
|
| 72 |
/*==========================================================================*/ |
| 73 |
|
| 74 |
/*** idst = IIIGCE_C(dsplay,evalno,kstring) ***/ |
| 75 |
|
| 76 |
ROUTINE III2(dsplay,evalno,idst) |
| 77 |
int *dsplay; |
| 78 |
int *evalno; |
| 79 |
int *idst; |
| 80 |
|
| 81 |
{ |
| 82 |
int n, IIIGCE_C(); |
| 83 |
|
| 84 |
ptr1 = loc_pntr(1,&mm); /* get location of "kstring" */ |
| 85 |
|
| 86 |
*idst = IIIGCE_C(*dsplay,*evalno,ptr1); |
| 87 |
|
| 88 |
n = (int) strlen(ptr1); |
| 89 |
if ((n > 0) && (n < mm)) *(ptr1+n) = ' '; |
| 90 |
|
| 91 |
return 0; |
| 92 |
} |
| 93 |
|
| 94 |
/*==========================================================================*/ |
| 95 |
|
| 96 |
/*** idst = IIIENI_C(dsplay,inttyp,intid,objtyp,objid,intop,extrig) ***/ |
| 97 |
|
| 98 |
ROUTINE IIIENI(dsplay,inttyp,intid,objtyp,objid,intop,extrig,idst) |
| 99 |
int *dsplay; |
| 100 |
int *inttyp; |
| 101 |
int *intid; |
| 102 |
int *objtyp; |
| 103 |
int *objid; |
| 104 |
int *intop; |
| 105 |
int *extrig; |
| 106 |
int *idst; |
| 107 |
|
| 108 |
{ |
| 109 |
int IIIENI_C(); |
| 110 |
|
| 111 |
*idst = IIIENI_C(*dsplay,*inttyp,*intid,*objtyp,*objid,*intop,*extrig); |
| 112 |
return 0; |
| 113 |
} |
| 114 |
|
| 115 |
ROUTINE IIIEIW(dsplay,trigst,idst) |
| 116 |
int *dsplay; |
| 117 |
int *trigst; |
| 118 |
int *idst; |
| 119 |
|
| 120 |
{ |
| 121 |
int IIIEIW_C(); |
| 122 |
|
| 123 |
*idst = IIIEIW_C(*dsplay,trigst); |
| 124 |
return 0; |
| 125 |
} |
| 126 |
|
| 127 |
ROUTINE IIISTI(dsplay,idst) |
| 128 |
int *dsplay; |
| 129 |
int *idst; |
| 130 |
|
| 131 |
{ |
| 132 |
int IIISTI_C(); |
| 133 |
|
| 134 |
*idst = IIISTI_C(*dsplay); |
| 135 |
return 0; |
| 136 |
} |
| 137 |
|
| 138 |
ROUTINE IIIGLD(dsplay,locno,jx,jy,idst) |
| 139 |
int *dsplay; |
| 140 |
int *locno; |
| 141 |
int *jx; |
| 142 |
int *jy; |
| 143 |
int *idst; |
| 144 |
|
| 145 |
{ |
| 146 |
int IIIGLD_C(); |
| 147 |
|
| 148 |
*idst = IIIGLD_C(*dsplay,*locno,jx,jy); |
| 149 |
return 0; |
| 150 |
} |
| 151 |
|
| 152 |
ROUTINE IIIGLE(dsplay,eval,jj,idst) |
| 153 |
int *dsplay; |
| 154 |
int *eval; |
| 155 |
int *jj; |
| 156 |
int *idst; |
| 157 |
|
| 158 |
{ |
| 159 |
int IIIGLE_C(); |
| 160 |
|
| 161 |
*idst = IIIGLE_C(*dsplay,*eval,jj); |
| 162 |
return 0; |
| 163 |
} |