Sun Microsystems 800-1256-04 — Sun Microsystems 800-1256-04 SunCGI Reference Manual PDF (EN)

152 SunCGl Reference Manual about this. The interface routines in /usr/ lib/ libcgi 77. a handle this situation correctly. When in doubt, look at the FORTRAN declarations for SunCGI functions at the end of this appendix. 0 • Some SunCGI functions have structures as arguments or return values. These are handled in FORTRAN by unbundling the structures into separate arguments. In general, these will be in the same order, and have the same names, as the members of the C structures. One exception is the Ccoorlist structure, which is replaced in FORTRAN with an array of x • s, and one of y 's, rather than an array of x-y pairs.

You may need to consult both the C and FORTRAN docu- mentation to determine which FORTRAN arguments are input values, and which are output • Since FORTRAN does not distinguish between upper-case letters and lower-case letters in identifiers, any FORTRAN program unit which includes the cgidef s 7 7. h header file cannot use the same spelling as any constant defined in that header file, regardless of case. • The function cfqoutcap returns the FORTRAN binding names of the output capabilities, rather than the C bindings. Tiris is an exception to the rule that the FORTRAN library provides a transparent interface to the C functions. G.2.

Example Program This example is the FORTRAN equivalent of the very simple program for drawing a manini glass. 0 0 Venion C of 17 March 1986