next up previous
Next: Future Versions
Up: INTRODUCTION
Previous: Fortran Version

C Version

An ANSI C version of SLALIB is available from the author but is not part of the Starlink release. The functionality of this (proprietary) C version closely matches that of the Starlink Fortran SLALIB, partly for the convenience of existing users of the Fortran version, some of whom have in the past implemented C ``wrappers''. The function names cannot be the same as the Fortran versions because of potential linking problems when both forms of the library are present; the C routine which is the equivalent of (for example) SLA_REFRO is slaRefro. The types of arguments follow the Fortran version, except that integers are int rather than long. Argument passing is by value (except for arrays and strings of course) for given arguments and by pointer for returned arguments. All the C functions are re-entrant.

The Fortran routines sla_GRESID, sla_RANDOM and sla_WAIT have no C counterparts.

Further details of the C version of SLALIB are available from the author. The definitive guide to the calling sequences is the file slalib.h.



next up previous
Next: Future Versions
Up: INTRODUCTION
Previous: Fortran Version

SLALIB --- Positional Astronomy Library
Starlink User Note 67
P. T. Wallace
12 October 1999
E-mail:ptw@star.rl.ac.uk