/usr/share/doc/libcnf-dev/html/node85.html is in libcnf-dev 4.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 98.2 beta6 (August 14th, 1998)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>F77_EXPORT_type_ARRAY
- Export an array of type from C
to FORTRAN
</TITLE>
<META NAME="description" CONTENT="F77_EXPORT_type_ARRAY
- Export an array of type from C
to FORTRAN
">
<META NAME="keywords" CONTENT="sun209">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<LINK REL="STYLESHEET" HREF="sun209.css">
<LINK REL="next" HREF="node86.html">
<LINK REL="previous" HREF="node84.html">
<LINK REL="up" HREF="node77.html">
<LINK REL="next" HREF="node86.html">
</HEAD>
<BODY >
<BR> <HR>
<A NAME="tex2html1167"
HREF="node86.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next_motif.gif"></A>
<A NAME="tex2html1165"
HREF="node77.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up_motif.gif"></A>
<A NAME="tex2html1159"
HREF="node84.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="previous_motif.gif"></A> <A HREF="sun209.html#stardoccontents"><IMG
ALIGN="BOTTOM" BORDER="0" SRC="contents_motif.gif"
ALT="252"></A>
<BR>
<B> Next:</B> <A NAME="tex2html1168"
HREF="node86.html">F77_FREE_type - Free a dynamic variable of type</A>
<BR>
<B>Up:</B> <A NAME="tex2html1166"
HREF="node77.html">Full Description of F77 Macros</A>
<BR>
<B> Previous:</B> <A NAME="tex2html1160"
HREF="node84.html">F77_EXPORT_type - Export a C variable to a FORTRAN variable.</A>
<BR> <HR> <P>
<!--End of Navigation Panel-->
<H2><A NAME="SECTION000198000000000000000"></A><A NAME="xref_F77_EXPORT_type_ARRAY"></A><A NAME="F77_EXPORT_type_ARRAY"></A><A NAME="xref_F77_EXPORT_type_ARRAY"></A><A NAME="F77_EXPORT_type_ARRAY"></A>
<BR>
F77_EXPORT_<I>type</I>_ARRAY
- Export an array of <I>type</I> from C
to FORTRAN
</H2>
<DL>
<DT><STRONG>Description:</STRONG>
<DD><DL>
<DD>Depending upon the type and system, the C array will be copied to the
FORTRAN array, making any required changes to the data, or the pointer
to the FORTRAN array will be set to point to the C array.
(<I>type</I> not CHARACTER.)
</DL>
<BR>
<DT><STRONG>Invocation:</STRONG>
<DD><DL>
<DD><TT> F77_EXPORT_<I>type</I>_ARRAY(carg,farg,nels)
</TT>
</DL>
<BR>
<DT><STRONG>Arguments:</STRONG>
<DD>
<BR>
<DL>
<DT><STRONG>
carg
</STRONG>
<DD>
A pointer to the C array
<DT><STRONG>
farg
</STRONG>
<DD>
A pointer to the FORTRAN array
<DT><STRONG>
nels
</STRONG>
<DD>
The number of elements to be exported
</DL>
<BR>
<DT><STRONG>Examples:</STRONG>
<DD>
<BR>
<DL>
<DT><STRONG><TT> F77_EXPORT_<I>type</I>_ARRAY(farg,carg,nels)
</TT></STRONG>
<DD><I>type</I> LOGICAL will expand as follows:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT">All systems:</TD>
<TD ALIGN="LEFT"><TT> {<TT>int f77dims[1];f77dims[0]=nels;</TT></TT></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><TT> cnfExpla(carg,farg,1,f77dims);} </TT></TD>
</TR>
</TABLE>
<P>
<I>type</I> POINTER will expand as follows:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT">All systems:</TD>
<TD ALIGN="LEFT"><TT> {<TT>int f77i; for(f77i=0;nels>f77i;f77i++) {</TT></TT></TD>
</TR>
<TR><TD ALIGN="LEFT"> </TD>
<TD ALIGN="LEFT"><TT> farg[f77i]=cnfFptr(carg[f77i]);
}} </TT></TD>
</TR>
</TABLE>
<P>
All other <I>type</I>s will expand as follows:
<P>
<TABLE CELLPADDING=3>
<TR><TD ALIGN="LEFT">All systems:</TD>
<TD ALIGN="LEFT"><TT> farg=carg</TT></TD>
</TR>
</TABLE></DL>
<BR>
<DT><STRONG>Associated macro:</STRONG>
<DD><A HREF="node121.html#F77_EXPORT_CHARACTER_ARRAY"><TT>F77_EXPORT_CHARACTER_ARRAY</TT></A>
</DL>
<P>
<BR> <HR>
<A NAME="tex2html1167"
HREF="node86.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next_motif.gif"></A>
<A NAME="tex2html1165"
HREF="node77.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up_motif.gif"></A>
<A NAME="tex2html1159"
HREF="node84.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="previous_motif.gif"></A> <A HREF="sun209.html#stardoccontents"><IMG
ALIGN="BOTTOM" BORDER="0" SRC="contents_motif.gif"
ALT="252"></A>
<BR>
<B> Next:</B> <A NAME="tex2html1168"
HREF="node86.html">F77_FREE_type - Free a dynamic variable of type</A>
<BR>
<B>Up:</B> <A NAME="tex2html1166"
HREF="node77.html">Full Description of F77 Macros</A>
<BR>
<B> Previous:</B> <A NAME="tex2html1160"
HREF="node84.html">F77_EXPORT_type - Export a C variable to a FORTRAN variable.</A>
<BR> <HR> <P>
<!--End of Navigation Panel-->
<ADDRESS>
<I>CNF and F77 Mixed Language Programming -- FORTRAN and C<BR>Starlink User Note 209<BR>P.M. Allan<BR>A.J. Chipperfield<BR>R.F. Warren-Smith<BR>19 January 2000<BR>E-mail:<A HREF="mailto:ussc@star.rl.ac.uk">ussc@star.rl.ac.uk</A></I>
</ADDRESS>
</BODY>
</HTML>
|