/*

-Procedure  bodvar_c ( Return values from the kernel pool )

-Abstract

   Deprecated: This routine has been superseded by bodvcd_c and
   bodvrd_c.  This routine is supported for purposes of backward
   compatibility only.

   Return the values of some item for any body in the
   kernel pool.

-Disclaimer

   THIS SOFTWARE AND ANY RELATED MATERIALS WERE CREATED BY THE
   CALIFORNIA INSTITUTE OF TECHNOLOGY (CALTECH) UNDER A U.S.
   GOVERNMENT CONTRACT WITH THE NATIONAL AERONAUTICS AND SPACE
   ADMINISTRATION (NASA). THE SOFTWARE IS TECHNOLOGY AND SOFTWARE
   PUBLICLY AVAILABLE UNDER U.S. EXPORT LAWS AND IS PROVIDED "AS-IS"
   TO THE RECIPIENT WITHOUT WARRANTY OF ANY KIND, INCLUDING ANY
   WARRANTIES OF PERFORMANCE OR MERCHANTABILITY OR FITNESS FOR A
   PARTICULAR USE OR PURPOSE (AS SET FORTH IN UNITED STATES UCC
   SECTIONS 2312-2313) OR FOR ANY PURPOSE WHATSOEVER, FOR THE
   SOFTWARE AND RELATED MATERIALS, HOWEVER USED.

   IN NO EVENT SHALL CALTECH, ITS JET PROPULSION LABORATORY, OR NASA
   BE LIABLE FOR ANY DAMAGES AND/OR COSTS, INCLUDING, BUT NOT
   LIMITED TO, INCIDENTAL OR CONSEQUENTIAL DAMAGES OF ANY KIND,
   INCLUDING ECONOMIC DAMAGE OR INJURY TO PROPERTY AND LOST PROFITS,
   REGARDLESS OF WHETHER CALTECH, JPL, OR NASA BE ADVISED, HAVE
   REASON TO KNOW, OR, IN FACT, SHALL KNOW OF THE POSSIBILITY.

   RECIPIENT BEARS ALL RISK RELATING TO QUALITY AND PERFORMANCE OF
   THE SOFTWARE AND ANY RELATED MATERIALS, AND AGREES TO INDEMNIFY
   CALTECH AND NASA FOR ALL THIRD-PARTY CLAIMS RESULTING FROM THE
   ACTIONS OF RECIPIENT IN THE USE OF THE SOFTWARE.

-Required_Reading

   KERNEL

-Keywords

   CONSTANTS

*/

   #include "SpiceUsr.h"
   #include "SpiceZfc.h"
   #include "SpiceZmc.h"

   void bodvar_c ( SpiceInt           body,
                   ConstSpiceChar   * item,
                   SpiceInt         * dim,
                   SpiceDouble      * values )

/*

-Brief_I/O

   VARIABLE  I/O  DESCRIPTION
   --------  ---  --------------------------------------------------
   body       I   ID code of body.
   item       I   Item for which values are desired. ("RADII",
                  "NUT_PREC_ANGLES", etc. )
   dim        O   Number of values returned.
   values     O   Values.


-Detailed_Input

   body       is the ID code of the body for which ITEM is
              requested. Bodies are numbered according to the
              standard NAIF numbering scheme.

   item       is the item to be returned. Together, the body and
              item name combine to form a variable name, e.g.,

                    "BODY599_RADII"
                    "BODY401_POLE_RA"

-Detailed_Output

   dim        is the number of values associated with the variable.

   values     are the values associated with the variable.

-Parameters

   None.

-Particulars

   None.

-Examples

   The call

        SpiceInt       body;
        SpiceInt       dim;
        SpiceChar    * item;
        SpiceDouble    value[10];

        body = 399;
        item = "RADII";

        bodvar_c ( body, item, &dim, value );

   returns the dimension and values associated with the variable
   "BODY399_RADII", for example,

        dim      is 3
        value[0] is 6378.140
        value[1] is 6378.140
        value[2] is 6356.755


-Restrictions

   1) If the requested item is not found, the error
      SPICE(KERNELVARNOTFOUND) is signalled.

-Exceptions

   Error free.

-Files

   None.

-Author_and_Institution

   W.L. Taber      (JPL)
   I.M. Underwood  (JPL)
   E.D. Wright     (JPL)

-Literature_References

   1) Refer to the SPK required reading file for a complete list of
      the NAIF integer ID codes for bodies.

-Version

   -CSPICE Version 2.0.3, 27-OCT-2005 (NJB)

       Routine is now deprecated.

   -CSPICE Version 2.0.2, 08-JAN-2004 (EDW)

       Trivial typo corrected.

   -CSPICE Version 2.0.1, 08-FEB-1998 (EDW)

       Corrected and clarified header entries.

   -CSPICE Version 2.0.0, 06-JAN-1998 (NJB)

       Input argument item was changed to type ConstSpiceChar *.

       References to C2F_CreateStr_Sig were removed; code was
       cleaned up accordingly.  String checks are now done using
       the macro CHKFSTR.

   -CSPICE Version 1.0.0, 25-OCT-1997 (EDW)

-Index_Entries

   fetch constants for a body from the kernel pool
   physical constants for a body

-&
*/


{ /* Begin  bodvar_c */


   /*
   Participate in error tracing.
   */
   chkin_c ( "bodvar_c" );


   /*
   Check the input string to make sure the pointer is non-null
   and the string length is non-zero.
   */
   CHKFSTR ( CHK_STANDARD, "bodfnd_c", item );


   /*
   Call the f2c'd routine.
   */
   bodvar_( ( integer    * ) &body,
            ( char       * ) item,
            ( integer    * ) dim,
            ( doublereal * ) values,
            ( ftnlen       ) strlen(item) );


   chkout_c ( "bodvar_c" );

} /* End  bodvar_c*/
