1 @c This file is automatically derived from intdoc.c, intdoc.in,
2 @c ansify.c, intrin.def, and intrin.h. Edit those files instead.
5 * Abort Intrinsic:: Abort the program.
8 * Abs Intrinsic:: Absolute value.
11 * Access Intrinsic:: Check file accessibility.
14 * AChar Intrinsic:: ASCII character from code.
17 * ACos Intrinsic:: Arc cosine.
20 * ACosD Intrinsic:: (Reserved for future use.)
23 * AdjustL Intrinsic:: (Reserved for future use.)
24 * AdjustR Intrinsic:: (Reserved for future use.)
27 * AImag Intrinsic:: Convert/extract imaginary part of complex.
30 * AIMax0 Intrinsic:: (Reserved for future use.)
31 * AIMin0 Intrinsic:: (Reserved for future use.)
34 * AInt Intrinsic:: Truncate to whole number.
37 * AJMax0 Intrinsic:: (Reserved for future use.)
38 * AJMin0 Intrinsic:: (Reserved for future use.)
41 * Alarm Intrinsic:: Execute a routine after a given delay.
44 * All Intrinsic:: (Reserved for future use.)
45 * Allocated Intrinsic:: (Reserved for future use.)
48 * ALog Intrinsic:: Natural logarithm (archaic).
49 * ALog10 Intrinsic:: Common logarithm (archaic).
50 * AMax0 Intrinsic:: Maximum value (archaic).
51 * AMax1 Intrinsic:: Maximum value (archaic).
52 * AMin0 Intrinsic:: Minimum value (archaic).
53 * AMin1 Intrinsic:: Minimum value (archaic).
54 * AMod Intrinsic:: Remainder (archaic).
57 * And Intrinsic:: Boolean AND.
60 * ANInt Intrinsic:: Round to nearest whole number.
63 * Any Intrinsic:: (Reserved for future use.)
66 * ASin Intrinsic:: Arc sine.
69 * ASinD Intrinsic:: (Reserved for future use.)
72 * Associated Intrinsic:: (Reserved for future use.)
75 * ATan Intrinsic:: Arc tangent.
76 * ATan2 Intrinsic:: Arc tangent.
79 * ATan2D Intrinsic:: (Reserved for future use.)
80 * ATanD Intrinsic:: (Reserved for future use.)
83 * BesJ0 Intrinsic:: Bessel function.
84 * BesJ1 Intrinsic:: Bessel function.
85 * BesJN Intrinsic:: Bessel function.
86 * BesY0 Intrinsic:: Bessel function.
87 * BesY1 Intrinsic:: Bessel function.
88 * BesYN Intrinsic:: Bessel function.
91 * BITest Intrinsic:: (Reserved for future use.)
94 * Bit_Size Intrinsic:: Number of bits in argument's type.
97 * BJTest Intrinsic:: (Reserved for future use.)
100 * BTest Intrinsic:: Test bit.
103 * CAbs Intrinsic:: Absolute value (archaic).
104 * CCos Intrinsic:: Cosine (archaic).
107 * CDAbs Intrinsic:: Absolute value (archaic).
108 * CDCos Intrinsic:: Cosine (archaic).
109 * CDExp Intrinsic:: Exponential (archaic).
110 * CDLog Intrinsic:: Natural logarithm (archaic).
111 * CDSin Intrinsic:: Sine (archaic).
112 * CDSqRt Intrinsic:: Square root (archaic).
115 * Ceiling Intrinsic:: (Reserved for future use.)
118 * CExp Intrinsic:: Exponential (archaic).
119 * Char Intrinsic:: Character from code.
122 * ChDir Intrinsic (subroutine):: Change directory.
125 * ChDir Intrinsic (function):: Change directory.
128 * ChMod Intrinsic (subroutine):: Change file modes.
131 * ChMod Intrinsic (function):: Change file modes.
134 * CLog Intrinsic:: Natural logarithm (archaic).
135 * Cmplx Intrinsic:: Construct @code{COMPLEX(KIND=1)} value.
138 * Complex Intrinsic:: Build complex value from real and
142 * Conjg Intrinsic:: Complex conjugate.
143 * Cos Intrinsic:: Cosine.
146 * CosD Intrinsic:: (Reserved for future use.)
149 * CosH Intrinsic:: Hyperbolic cosine.
152 * Count Intrinsic:: (Reserved for future use.)
153 * CPU_Time Intrinsic:: Get current CPU time.
154 * CShift Intrinsic:: (Reserved for future use.)
157 * CSin Intrinsic:: Sine (archaic).
158 * CSqRt Intrinsic:: Square root (archaic).
161 * CTime Intrinsic (subroutine):: Convert time to Day Mon dd hh:mm:ss yyyy.
162 * CTime Intrinsic (function):: Convert time to Day Mon dd hh:mm:ss yyyy.
165 * DAbs Intrinsic:: Absolute value (archaic).
166 * DACos Intrinsic:: Arc cosine (archaic).
169 * DACosD Intrinsic:: (Reserved for future use.)
172 * DASin Intrinsic:: Arc sine (archaic).
175 * DASinD Intrinsic:: (Reserved for future use.)
178 * DATan Intrinsic:: Arc tangent (archaic).
179 * DATan2 Intrinsic:: Arc tangent (archaic).
182 * DATan2D Intrinsic:: (Reserved for future use.)
183 * DATanD Intrinsic:: (Reserved for future use.)
184 * Date Intrinsic:: Get current date as dd-Mon-yy.
187 * Date_and_Time Intrinsic:: Get the current date and time.
190 * DbesJ0 Intrinsic:: Bessel function (archaic).
191 * DbesJ1 Intrinsic:: Bessel function (archaic).
192 * DbesJN Intrinsic:: Bessel function (archaic).
193 * DbesY0 Intrinsic:: Bessel function (archaic).
194 * DbesY1 Intrinsic:: Bessel function (archaic).
195 * DbesYN Intrinsic:: Bessel function (archaic).
198 * Dble Intrinsic:: Convert to double precision.
201 * DbleQ Intrinsic:: (Reserved for future use.)
204 * DCmplx Intrinsic:: Construct @code{COMPLEX(KIND=2)} value.
205 * DConjg Intrinsic:: Complex conjugate (archaic).
208 * DCos Intrinsic:: Cosine (archaic).
211 * DCosD Intrinsic:: (Reserved for future use.)
214 * DCosH Intrinsic:: Hyperbolic cosine (archaic).
215 * DDiM Intrinsic:: Difference magnitude (archaic).
218 * DErF Intrinsic:: Error function (archaic).
219 * DErFC Intrinsic:: Complementary error function (archaic).
222 * DExp Intrinsic:: Exponential (archaic).
225 * DFloat Intrinsic:: Conversion (archaic).
228 * DFlotI Intrinsic:: (Reserved for future use.)
229 * DFlotJ Intrinsic:: (Reserved for future use.)
232 * Digits Intrinsic:: (Reserved for future use.)
235 * DiM Intrinsic:: Difference magnitude (non-negative subtract).
238 * DImag Intrinsic:: Convert/extract imaginary part of complex (archaic).
241 * DInt Intrinsic:: Truncate to whole number (archaic).
242 * DLog Intrinsic:: Natural logarithm (archaic).
243 * DLog10 Intrinsic:: Common logarithm (archaic).
244 * DMax1 Intrinsic:: Maximum value (archaic).
245 * DMin1 Intrinsic:: Minimum value (archaic).
246 * DMod Intrinsic:: Remainder (archaic).
247 * DNInt Intrinsic:: Round to nearest whole number (archaic).
250 * Dot_Product Intrinsic:: (Reserved for future use.)
253 * DProd Intrinsic:: Double-precision product.
256 * DReal Intrinsic:: Convert value to type @code{REAL(KIND=2)}.
259 * DSign Intrinsic:: Apply sign to magnitude (archaic).
260 * DSin Intrinsic:: Sine (archaic).
263 * DSinD Intrinsic:: (Reserved for future use.)
266 * DSinH Intrinsic:: Hyperbolic sine (archaic).
267 * DSqRt Intrinsic:: Square root (archaic).
268 * DTan Intrinsic:: Tangent (archaic).
271 * DTanD Intrinsic:: (Reserved for future use.)
274 * DTanH Intrinsic:: Hyperbolic tangent (archaic).
277 * DTime Intrinsic (subroutine):: Get elapsed time since last time.
280 * DTime Intrinsic (function):: Get elapsed time since last time.
283 * EOShift Intrinsic:: (Reserved for future use.)
284 * Epsilon Intrinsic:: (Reserved for future use.)
287 * ErF Intrinsic:: Error function.
288 * ErFC Intrinsic:: Complementary error function.
289 * ETime Intrinsic (subroutine):: Get elapsed time for process.
290 * ETime Intrinsic (function):: Get elapsed time for process.
291 * Exit Intrinsic:: Terminate the program.
294 * Exp Intrinsic:: Exponential.
297 * Exponent Intrinsic:: (Reserved for future use.)
300 * FDate Intrinsic (subroutine):: Get current time as Day Mon dd hh:mm:ss yyyy.
301 * FDate Intrinsic (function):: Get current time as Day Mon dd hh:mm:ss yyyy.
302 * FGet Intrinsic (subroutine):: Read a character from unit 5 stream-wise.
305 * FGet Intrinsic (function):: Read a character from unit 5 stream-wise.
308 * FGetC Intrinsic (subroutine):: Read a character stream-wise.
311 * FGetC Intrinsic (function):: Read a character stream-wise.
314 * Float Intrinsic:: Conversion (archaic).
317 * FloatI Intrinsic:: (Reserved for future use.)
318 * FloatJ Intrinsic:: (Reserved for future use.)
321 * Floor Intrinsic:: (Reserved for future use.)
324 * Flush Intrinsic:: Flush buffered output.
325 * FNum Intrinsic:: Get file descriptor from Fortran unit number.
326 * FPut Intrinsic (subroutine):: Write a character to unit 6 stream-wise.
329 * FPut Intrinsic (function):: Write a character to unit 6 stream-wise.
332 * FPutC Intrinsic (subroutine):: Write a character stream-wise.
335 * FPutC Intrinsic (function):: Write a character stream-wise.
338 * Fraction Intrinsic:: (Reserved for future use.)
341 * FSeek Intrinsic:: Position file (low-level).
342 * FStat Intrinsic (subroutine):: Get file information.
343 * FStat Intrinsic (function):: Get file information.
344 * FTell Intrinsic (subroutine):: Get file position (low-level).
345 * FTell Intrinsic (function):: Get file position (low-level).
346 * GError Intrinsic:: Get error message for last error.
347 * GetArg Intrinsic:: Obtain command-line argument.
348 * GetCWD Intrinsic (subroutine):: Get current working directory.
349 * GetCWD Intrinsic (function):: Get current working directory.
350 * GetEnv Intrinsic:: Get environment variable.
351 * GetGId Intrinsic:: Get process group id.
352 * GetLog Intrinsic:: Get login name.
353 * GetPId Intrinsic:: Get process id.
354 * GetUId Intrinsic:: Get process user id.
355 * GMTime Intrinsic:: Convert time to GMT time info.
356 * HostNm Intrinsic (subroutine):: Get host name.
357 * HostNm Intrinsic (function):: Get host name.
360 * Huge Intrinsic:: (Reserved for future use.)
363 * IAbs Intrinsic:: Absolute value (archaic).
366 * IAChar Intrinsic:: ASCII code for character.
369 * IAnd Intrinsic:: Boolean AND.
372 * IArgC Intrinsic:: Obtain count of command-line arguments.
375 * IBClr Intrinsic:: Clear a bit.
376 * IBits Intrinsic:: Extract a bit subfield of a variable.
377 * IBSet Intrinsic:: Set a bit.
380 * IChar Intrinsic:: Code for character.
383 * IDate Intrinsic (UNIX):: Get local time info.
386 * IDate Intrinsic (VXT):: Get local time info (VAX/VMS).
389 * IDiM Intrinsic:: Difference magnitude (archaic).
390 * IDInt Intrinsic:: Convert to @code{INTEGER} value truncated
391 to whole number (archaic).
392 * IDNInt Intrinsic:: Convert to @code{INTEGER} value rounded
393 to nearest whole number (archaic).
396 * IEOr Intrinsic:: Boolean XOR.
399 * IErrNo Intrinsic:: Get error number for last error.
402 * IFix Intrinsic:: Conversion (archaic).
405 * IIAbs Intrinsic:: (Reserved for future use.)
406 * IIAnd Intrinsic:: (Reserved for future use.)
407 * IIBClr Intrinsic:: (Reserved for future use.)
408 * IIBits Intrinsic:: (Reserved for future use.)
409 * IIBSet Intrinsic:: (Reserved for future use.)
410 * IIDiM Intrinsic:: (Reserved for future use.)
411 * IIDInt Intrinsic:: (Reserved for future use.)
412 * IIDNnt Intrinsic:: (Reserved for future use.)
413 * IIEOr Intrinsic:: (Reserved for future use.)
414 * IIFix Intrinsic:: (Reserved for future use.)
415 * IInt Intrinsic:: (Reserved for future use.)
416 * IIOr Intrinsic:: (Reserved for future use.)
417 * IIQint Intrinsic:: (Reserved for future use.)
418 * IIQNnt Intrinsic:: (Reserved for future use.)
419 * IIShftC Intrinsic:: (Reserved for future use.)
420 * IISign Intrinsic:: (Reserved for future use.)
423 * Imag Intrinsic:: Extract imaginary part of complex.
426 * ImagPart Intrinsic:: Extract imaginary part of complex.
429 * IMax0 Intrinsic:: (Reserved for future use.)
430 * IMax1 Intrinsic:: (Reserved for future use.)
431 * IMin0 Intrinsic:: (Reserved for future use.)
432 * IMin1 Intrinsic:: (Reserved for future use.)
433 * IMod Intrinsic:: (Reserved for future use.)
436 * Index Intrinsic:: Locate a CHARACTER substring.
439 * INInt Intrinsic:: (Reserved for future use.)
440 * INot Intrinsic:: (Reserved for future use.)
443 * Int Intrinsic:: Convert to @code{INTEGER} value truncated
447 * Int2 Intrinsic:: Convert to @code{INTEGER(KIND=6)} value
448 truncated to whole number.
449 * Int8 Intrinsic:: Convert to @code{INTEGER(KIND=2)} value
450 truncated to whole number.
453 * IOr Intrinsic:: Boolean OR.
456 * IRand Intrinsic:: Random number.
457 * IsaTty Intrinsic:: Is unit connected to a terminal?
460 * IShft Intrinsic:: Logical bit shift.
461 * IShftC Intrinsic:: Circular bit shift.
464 * ISign Intrinsic:: Apply sign to magnitude (archaic).
467 * ITime Intrinsic:: Get local time of day.
470 * IZExt Intrinsic:: (Reserved for future use.)
471 * JIAbs Intrinsic:: (Reserved for future use.)
472 * JIAnd Intrinsic:: (Reserved for future use.)
473 * JIBClr Intrinsic:: (Reserved for future use.)
474 * JIBits Intrinsic:: (Reserved for future use.)
475 * JIBSet Intrinsic:: (Reserved for future use.)
476 * JIDiM Intrinsic:: (Reserved for future use.)
477 * JIDInt Intrinsic:: (Reserved for future use.)
478 * JIDNnt Intrinsic:: (Reserved for future use.)
479 * JIEOr Intrinsic:: (Reserved for future use.)
480 * JIFix Intrinsic:: (Reserved for future use.)
481 * JInt Intrinsic:: (Reserved for future use.)
482 * JIOr Intrinsic:: (Reserved for future use.)
483 * JIQint Intrinsic:: (Reserved for future use.)
484 * JIQNnt Intrinsic:: (Reserved for future use.)
485 * JIShft Intrinsic:: (Reserved for future use.)
486 * JIShftC Intrinsic:: (Reserved for future use.)
487 * JISign Intrinsic:: (Reserved for future use.)
488 * JMax0 Intrinsic:: (Reserved for future use.)
489 * JMax1 Intrinsic:: (Reserved for future use.)
490 * JMin0 Intrinsic:: (Reserved for future use.)
491 * JMin1 Intrinsic:: (Reserved for future use.)
492 * JMod Intrinsic:: (Reserved for future use.)
493 * JNInt Intrinsic:: (Reserved for future use.)
494 * JNot Intrinsic:: (Reserved for future use.)
495 * JZExt Intrinsic:: (Reserved for future use.)
498 * Kill Intrinsic (subroutine):: Signal a process.
501 * Kill Intrinsic (function):: Signal a process.
504 * Kind Intrinsic:: (Reserved for future use.)
505 * LBound Intrinsic:: (Reserved for future use.)
508 * Len Intrinsic:: Length of character entity.
511 * Len_Trim Intrinsic:: Get last non-blank character in string.
514 * LGe Intrinsic:: Lexically greater than or equal.
515 * LGt Intrinsic:: Lexically greater than.
518 * Link Intrinsic (subroutine):: Make hard link in file system.
521 * Link Intrinsic (function):: Make hard link in file system.
524 * LLe Intrinsic:: Lexically less than or equal.
525 * LLt Intrinsic:: Lexically less than.
528 * LnBlnk Intrinsic:: Get last non-blank character in string.
529 * Loc Intrinsic:: Address of entity in core.
532 * Log Intrinsic:: Natural logarithm.
533 * Log10 Intrinsic:: Common logarithm.
536 * Logical Intrinsic:: (Reserved for future use.)
539 * Long Intrinsic:: Conversion to @code{INTEGER(KIND=1)} (archaic).
542 * LShift Intrinsic:: Left-shift bits.
545 * LStat Intrinsic (subroutine):: Get file information.
546 * LStat Intrinsic (function):: Get file information.
547 * LTime Intrinsic:: Convert time to local time info.
550 * MatMul Intrinsic:: (Reserved for future use.)
553 * Max Intrinsic:: Maximum value.
554 * Max0 Intrinsic:: Maximum value (archaic).
555 * Max1 Intrinsic:: Maximum value (archaic).
558 * MaxExponent Intrinsic:: (Reserved for future use.)
559 * MaxLoc Intrinsic:: (Reserved for future use.)
560 * MaxVal Intrinsic:: (Reserved for future use.)
563 * MClock Intrinsic:: Get number of clock ticks for process.
564 * MClock8 Intrinsic:: Get number of clock ticks for process.
567 * Merge Intrinsic:: (Reserved for future use.)
570 * Min Intrinsic:: Minimum value.
571 * Min0 Intrinsic:: Minimum value (archaic).
572 * Min1 Intrinsic:: Minimum value (archaic).
575 * MinExponent Intrinsic:: (Reserved for future use.)
576 * MinLoc Intrinsic:: (Reserved for future use.)
577 * MinVal Intrinsic:: (Reserved for future use.)
580 * Mod Intrinsic:: Remainder.
583 * Modulo Intrinsic:: (Reserved for future use.)
586 * MvBits Intrinsic:: Moving a bit field.
589 * Nearest Intrinsic:: (Reserved for future use.)
592 * NInt Intrinsic:: Convert to @code{INTEGER} value rounded
593 to nearest whole number.
596 * Not Intrinsic:: Boolean NOT.
599 * Or Intrinsic:: Boolean OR.
602 * Pack Intrinsic:: (Reserved for future use.)
605 * PError Intrinsic:: Print error message for last error.
608 * Precision Intrinsic:: (Reserved for future use.)
609 * Present Intrinsic:: (Reserved for future use.)
610 * Product Intrinsic:: (Reserved for future use.)
613 * QAbs Intrinsic:: (Reserved for future use.)
614 * QACos Intrinsic:: (Reserved for future use.)
615 * QACosD Intrinsic:: (Reserved for future use.)
616 * QASin Intrinsic:: (Reserved for future use.)
617 * QASinD Intrinsic:: (Reserved for future use.)
618 * QATan Intrinsic:: (Reserved for future use.)
619 * QATan2 Intrinsic:: (Reserved for future use.)
620 * QATan2D Intrinsic:: (Reserved for future use.)
621 * QATanD Intrinsic:: (Reserved for future use.)
622 * QCos Intrinsic:: (Reserved for future use.)
623 * QCosD Intrinsic:: (Reserved for future use.)
624 * QCosH Intrinsic:: (Reserved for future use.)
625 * QDiM Intrinsic:: (Reserved for future use.)
626 * QExp Intrinsic:: (Reserved for future use.)
627 * QExt Intrinsic:: (Reserved for future use.)
628 * QExtD Intrinsic:: (Reserved for future use.)
629 * QFloat Intrinsic:: (Reserved for future use.)
630 * QInt Intrinsic:: (Reserved for future use.)
631 * QLog Intrinsic:: (Reserved for future use.)
632 * QLog10 Intrinsic:: (Reserved for future use.)
633 * QMax1 Intrinsic:: (Reserved for future use.)
634 * QMin1 Intrinsic:: (Reserved for future use.)
635 * QMod Intrinsic:: (Reserved for future use.)
636 * QNInt Intrinsic:: (Reserved for future use.)
637 * QSin Intrinsic:: (Reserved for future use.)
638 * QSinD Intrinsic:: (Reserved for future use.)
639 * QSinH Intrinsic:: (Reserved for future use.)
640 * QSqRt Intrinsic:: (Reserved for future use.)
641 * QTan Intrinsic:: (Reserved for future use.)
642 * QTanD Intrinsic:: (Reserved for future use.)
643 * QTanH Intrinsic:: (Reserved for future use.)
646 * Radix Intrinsic:: (Reserved for future use.)
649 * Rand Intrinsic:: Random number.
652 * Random_Number Intrinsic:: (Reserved for future use.)
653 * Random_Seed Intrinsic:: (Reserved for future use.)
654 * Range Intrinsic:: (Reserved for future use.)
657 * Real Intrinsic:: Convert value to type @code{REAL(KIND=1)}.
660 * RealPart Intrinsic:: Extract real part of complex.
663 * Rename Intrinsic (subroutine):: Rename file.
666 * Rename Intrinsic (function):: Rename file.
669 * Repeat Intrinsic:: (Reserved for future use.)
670 * Reshape Intrinsic:: (Reserved for future use.)
671 * RRSpacing Intrinsic:: (Reserved for future use.)
674 * RShift Intrinsic:: Right-shift bits.
677 * Scale Intrinsic:: (Reserved for future use.)
678 * Scan Intrinsic:: (Reserved for future use.)
681 * Secnds Intrinsic:: Get local time offset since midnight.
684 * Second Intrinsic (function):: Get CPU time for process in seconds.
685 * Second Intrinsic (subroutine):: Get CPU time for process
689 * Selected_Int_Kind Intrinsic:: (Reserved for future use.)
690 * Selected_Real_Kind Intrinsic:: (Reserved for future use.)
691 * Set_Exponent Intrinsic:: (Reserved for future use.)
692 * Shape Intrinsic:: (Reserved for future use.)
695 * Short Intrinsic:: Convert to @code{INTEGER(KIND=6)} value
696 truncated to whole number.
699 * Sign Intrinsic:: Apply sign to magnitude.
702 * Signal Intrinsic (subroutine):: Muck with signal handling.
705 * Signal Intrinsic (function):: Muck with signal handling.
708 * Sin Intrinsic:: Sine.
711 * SinD Intrinsic:: (Reserved for future use.)
714 * SinH Intrinsic:: Hyperbolic sine.
717 * Sleep Intrinsic:: Sleep for a specified time.
720 * Sngl Intrinsic:: Convert (archaic).
723 * SnglQ Intrinsic:: (Reserved for future use.)
726 * Spacing Intrinsic:: (Reserved for future use.)
727 * Spread Intrinsic:: (Reserved for future use.)
730 * SqRt Intrinsic:: Square root.
733 * SRand Intrinsic:: Random seed.
734 * Stat Intrinsic (subroutine):: Get file information.
735 * Stat Intrinsic (function):: Get file information.
738 * Sum Intrinsic:: (Reserved for future use.)
741 * SymLnk Intrinsic (subroutine):: Make symbolic link in file system.
744 * SymLnk Intrinsic (function):: Make symbolic link in file system.
747 * System Intrinsic (subroutine):: Invoke shell (system) command.
750 * System Intrinsic (function):: Invoke shell (system) command.
753 * System_Clock Intrinsic:: Get current system clock value.
756 * Tan Intrinsic:: Tangent.
759 * TanD Intrinsic:: (Reserved for future use.)
762 * TanH Intrinsic:: Hyperbolic tangent.
765 * Time Intrinsic (UNIX):: Get current time as time value.
768 * Time Intrinsic (VXT):: Get the time as a character value.
771 * Time8 Intrinsic:: Get current time as time value.
774 * Tiny Intrinsic:: (Reserved for future use.)
775 * Transfer Intrinsic:: (Reserved for future use.)
776 * Transpose Intrinsic:: (Reserved for future use.)
777 * Trim Intrinsic:: (Reserved for future use.)
780 * TtyNam Intrinsic (subroutine):: Get name of terminal device for unit.
781 * TtyNam Intrinsic (function):: Get name of terminal device for unit.
784 * UBound Intrinsic:: (Reserved for future use.)
787 * UMask Intrinsic (subroutine):: Set file creation permissions mask.
790 * UMask Intrinsic (function):: Set file creation permissions mask.
793 * Unlink Intrinsic (subroutine):: Unlink file.
796 * Unlink Intrinsic (function):: Unlink file.
799 * Unpack Intrinsic:: (Reserved for future use.)
800 * Verify Intrinsic:: (Reserved for future use.)
803 * XOr Intrinsic:: Boolean XOR.
804 * ZAbs Intrinsic:: Absolute value (archaic).
805 * ZCos Intrinsic:: Cosine (archaic).
806 * ZExp Intrinsic:: Exponential (archaic).
809 * ZExt Intrinsic:: (Reserved for future use.)
812 * ZLog Intrinsic:: Natural logarithm (archaic).
813 * ZSin Intrinsic:: Sine (archaic).
814 * ZSqRt Intrinsic:: Square root (archaic).
819 @node Abort Intrinsic
820 @subsubsection Abort Intrinsic
821 @cindex Abort intrinsic
822 @cindex intrinsics, Abort
830 Intrinsic groups: @code{unix}.
835 Prints a message and potentially causes a core dump via @code{abort(3)}.
840 @subsubsection Abs Intrinsic
841 @cindex Abs intrinsic
842 @cindex intrinsics, Abs
850 Abs: @code{INTEGER} or @code{REAL} function.
851 The exact type depends on that of argument @var{A}---if @var{A} is
852 @code{COMPLEX}, this function's type is @code{REAL}
853 with the same @samp{KIND=} value as the type of @var{A}.
854 Otherwise, this function's type is the same as that of @var{A}.
857 @var{A}: @code{INTEGER}, @code{REAL}, or @code{COMPLEX}; scalar; INTENT(IN).
860 Intrinsic groups: (standard FORTRAN 77).
865 Returns the absolute value of @var{A}.
867 If @var{A} is type @code{COMPLEX}, the absolute
868 value is computed as:
871 SQRT(REALPART(@var{A})**2, IMAGPART(@var{A})**2)
875 Otherwise, it is computed by negating the @var{A} if
876 it is negative, or returning @var{A}.
878 @xref{Sign Intrinsic}, for how to explicitly
879 compute the positive or negative form of the absolute
880 value of an expression.
884 @node Access Intrinsic
885 @subsubsection Access Intrinsic
886 @cindex Access intrinsic
887 @cindex intrinsics, Access
891 Access(@var{Name}, @var{Mode})
895 Access: @code{INTEGER(KIND=1)} function.
898 @var{Name}: @code{CHARACTER}; scalar; INTENT(IN).
901 @var{Mode}: @code{CHARACTER}; scalar; INTENT(IN).
904 Intrinsic groups: @code{unix}.
909 Checks file @var{Name} for accessibility in the mode specified by @var{Mode} and
910 returns 0 if the file is accessible in that mode, otherwise an error
911 code if the file is inaccessible or @var{Mode} is invalid.
912 See @code{access(2)}.
913 A null character (@samp{CHAR(0)}) marks the end of
914 the name in @var{Name}---otherwise,
915 trailing blanks in @var{Name} are ignored.
916 @var{Mode} may be a concatenation of any of the following characters:
934 @node AChar Intrinsic
935 @subsubsection AChar Intrinsic
936 @cindex AChar intrinsic
937 @cindex intrinsics, AChar
945 AChar: @code{CHARACTER*1} function.
948 @var{I}: @code{INTEGER}; scalar; INTENT(IN).
951 Intrinsic groups: @code{f2c}, @code{f90}.
956 Returns the ASCII character corresponding to the
957 code specified by @var{I}.
959 @xref{IAChar Intrinsic}, for the inverse of this function.
961 @xref{Char Intrinsic}, for the function corresponding
962 to the system's native character set.
967 @subsubsection ACos Intrinsic
968 @cindex ACos intrinsic
969 @cindex intrinsics, ACos
977 ACos: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{X}.
980 @var{X}: @code{REAL}; scalar; INTENT(IN).
983 Intrinsic groups: (standard FORTRAN 77).
988 Returns the arc-cosine (inverse cosine) of @var{X}
991 @xref{Cos Intrinsic}, for the inverse of this function.
995 @node ACosD Intrinsic
996 @subsubsection ACosD Intrinsic
997 @cindex ACosD intrinsic
998 @cindex intrinsics, ACosD
1000 This intrinsic is not yet implemented.
1001 The name is, however, reserved as an intrinsic.
1002 Use @samp{EXTERNAL ACosD} to use this name for an
1007 @node AdjustL Intrinsic
1008 @subsubsection AdjustL Intrinsic
1009 @cindex AdjustL intrinsic
1010 @cindex intrinsics, AdjustL
1012 This intrinsic is not yet implemented.
1013 The name is, however, reserved as an intrinsic.
1014 Use @samp{EXTERNAL AdjustL} to use this name for an
1017 @node AdjustR Intrinsic
1018 @subsubsection AdjustR Intrinsic
1019 @cindex AdjustR intrinsic
1020 @cindex intrinsics, AdjustR
1022 This intrinsic is not yet implemented.
1023 The name is, however, reserved as an intrinsic.
1024 Use @samp{EXTERNAL AdjustR} to use this name for an
1029 @node AImag Intrinsic
1030 @subsubsection AImag Intrinsic
1031 @cindex AImag intrinsic
1032 @cindex intrinsics, AImag
1040 AImag: @code{REAL} function.
1041 This intrinsic is valid when argument @var{Z} is
1042 @code{COMPLEX(KIND=1)}.
1043 When @var{Z} is any other @code{COMPLEX} type,
1044 this intrinsic is valid only when used as the argument to
1045 @code{REAL()}, as explained below.
1048 @var{Z}: @code{COMPLEX}; scalar; INTENT(IN).
1051 Intrinsic groups: (standard FORTRAN 77).
1056 Returns the (possibly converted) imaginary part of @var{Z}.
1058 Use of @code{AIMAG()} with an argument of a type
1059 other than @code{COMPLEX(KIND=1)} is restricted to the following case:
1066 This expression converts the imaginary part of Z to
1067 @code{REAL(KIND=1)}.
1069 @xref{REAL() and AIMAG() of Complex}, for more information.
1073 @node AIMax0 Intrinsic
1074 @subsubsection AIMax0 Intrinsic
1075 @cindex AIMax0 intrinsic
1076 @cindex intrinsics, AIMax0
1078 This intrinsic is not yet implemented.
1079 The name is, however, reserved as an intrinsic.
1080 Use @samp{EXTERNAL AIMax0} to use this name for an
1083 @node AIMin0 Intrinsic
1084 @subsubsection AIMin0 Intrinsic
1085 @cindex AIMin0 intrinsic
1086 @cindex intrinsics, AIMin0
1088 This intrinsic is not yet implemented.
1089 The name is, however, reserved as an intrinsic.
1090 Use @samp{EXTERNAL AIMin0} to use this name for an
1095 @node AInt Intrinsic
1096 @subsubsection AInt Intrinsic
1097 @cindex AInt intrinsic
1098 @cindex intrinsics, AInt
1106 AInt: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{A}.
1109 @var{A}: @code{REAL}; scalar; INTENT(IN).
1112 Intrinsic groups: (standard FORTRAN 77).
1117 Returns @var{A} with the fractional portion of its
1118 magnitude truncated and its sign preserved.
1119 (Also called ``truncation towards zero''.)
1121 @xref{ANInt Intrinsic}, for how to round to nearest
1124 @xref{Int Intrinsic}, for how to truncate and then convert
1125 number to @code{INTEGER}.
1129 @node AJMax0 Intrinsic
1130 @subsubsection AJMax0 Intrinsic
1131 @cindex AJMax0 intrinsic
1132 @cindex intrinsics, AJMax0
1134 This intrinsic is not yet implemented.
1135 The name is, however, reserved as an intrinsic.
1136 Use @samp{EXTERNAL AJMax0} to use this name for an
1139 @node AJMin0 Intrinsic
1140 @subsubsection AJMin0 Intrinsic
1141 @cindex AJMin0 intrinsic
1142 @cindex intrinsics, AJMin0
1144 This intrinsic is not yet implemented.
1145 The name is, however, reserved as an intrinsic.
1146 Use @samp{EXTERNAL AJMin0} to use this name for an
1151 @node Alarm Intrinsic
1152 @subsubsection Alarm Intrinsic
1153 @cindex Alarm intrinsic
1154 @cindex intrinsics, Alarm
1158 CALL Alarm(@var{Seconds}, @var{Handler}, @var{Status})
1162 @var{Seconds}: @code{INTEGER}; scalar; INTENT(IN).
1165 @var{Handler}: Signal handler (@code{INTEGER FUNCTION} or @code{SUBROUTINE})
1166 or dummy/global @code{INTEGER(KIND=1)} scalar.
1169 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
1172 Intrinsic groups: @code{unix}.
1177 Causes external subroutine @var{Handler} to be executed after a delay of
1178 @var{Seconds} seconds by using @code{alarm(1)} to set up a signal and
1179 @code{signal(2)} to catch it.
1180 If @var{Status} is supplied, it will be
1181 returned with the number of seconds remaining until any previously
1182 scheduled alarm was due to be delivered, or zero if there was no
1183 previously scheduled alarm.
1184 @xref{Signal Intrinsic (subroutine)}.
1189 @subsubsection All Intrinsic
1190 @cindex All intrinsic
1191 @cindex intrinsics, All
1193 This intrinsic is not yet implemented.
1194 The name is, however, reserved as an intrinsic.
1195 Use @samp{EXTERNAL All} to use this name for an
1198 @node Allocated Intrinsic
1199 @subsubsection Allocated Intrinsic
1200 @cindex Allocated intrinsic
1201 @cindex intrinsics, Allocated
1203 This intrinsic is not yet implemented.
1204 The name is, however, reserved as an intrinsic.
1205 Use @samp{EXTERNAL Allocated} to use this name for an
1210 @node ALog Intrinsic
1211 @subsubsection ALog Intrinsic
1212 @cindex ALog intrinsic
1213 @cindex intrinsics, ALog
1221 ALog: @code{REAL(KIND=1)} function.
1224 @var{X}: @code{REAL(KIND=1)}; scalar; INTENT(IN).
1227 Intrinsic groups: (standard FORTRAN 77).
1232 Archaic form of @code{LOG()} that is specific
1233 to one type for @var{X}.
1234 @xref{Log Intrinsic}.
1236 @node ALog10 Intrinsic
1237 @subsubsection ALog10 Intrinsic
1238 @cindex ALog10 intrinsic
1239 @cindex intrinsics, ALog10
1247 ALog10: @code{REAL(KIND=1)} function.
1250 @var{X}: @code{REAL(KIND=1)}; scalar; INTENT(IN).
1253 Intrinsic groups: (standard FORTRAN 77).
1258 Archaic form of @code{LOG10()} that is specific
1259 to one type for @var{X}.
1260 @xref{Log10 Intrinsic}.
1262 @node AMax0 Intrinsic
1263 @subsubsection AMax0 Intrinsic
1264 @cindex AMax0 intrinsic
1265 @cindex intrinsics, AMax0
1269 AMax0(@var{A}-1, @var{A}-2, @dots{}, @var{A}-n)
1273 AMax0: @code{REAL(KIND=1)} function.
1276 @var{A}: @code{INTEGER(KIND=1)}; at least two such arguments must be provided; scalar; INTENT(IN).
1279 Intrinsic groups: (standard FORTRAN 77).
1284 Archaic form of @code{MAX()} that is specific
1285 to one type for @var{A} and a different return type.
1286 @xref{Max Intrinsic}.
1288 @node AMax1 Intrinsic
1289 @subsubsection AMax1 Intrinsic
1290 @cindex AMax1 intrinsic
1291 @cindex intrinsics, AMax1
1295 AMax1(@var{A}-1, @var{A}-2, @dots{}, @var{A}-n)
1299 AMax1: @code{REAL(KIND=1)} function.
1302 @var{A}: @code{REAL(KIND=1)}; at least two such arguments must be provided; scalar; INTENT(IN).
1305 Intrinsic groups: (standard FORTRAN 77).
1310 Archaic form of @code{MAX()} that is specific
1311 to one type for @var{A}.
1312 @xref{Max Intrinsic}.
1314 @node AMin0 Intrinsic
1315 @subsubsection AMin0 Intrinsic
1316 @cindex AMin0 intrinsic
1317 @cindex intrinsics, AMin0
1321 AMin0(@var{A}-1, @var{A}-2, @dots{}, @var{A}-n)
1325 AMin0: @code{REAL(KIND=1)} function.
1328 @var{A}: @code{INTEGER(KIND=1)}; at least two such arguments must be provided; scalar; INTENT(IN).
1331 Intrinsic groups: (standard FORTRAN 77).
1336 Archaic form of @code{MIN()} that is specific
1337 to one type for @var{A} and a different return type.
1338 @xref{Min Intrinsic}.
1340 @node AMin1 Intrinsic
1341 @subsubsection AMin1 Intrinsic
1342 @cindex AMin1 intrinsic
1343 @cindex intrinsics, AMin1
1347 AMin1(@var{A}-1, @var{A}-2, @dots{}, @var{A}-n)
1351 AMin1: @code{REAL(KIND=1)} function.
1354 @var{A}: @code{REAL(KIND=1)}; at least two such arguments must be provided; scalar; INTENT(IN).
1357 Intrinsic groups: (standard FORTRAN 77).
1362 Archaic form of @code{MIN()} that is specific
1363 to one type for @var{A}.
1364 @xref{Min Intrinsic}.
1366 @node AMod Intrinsic
1367 @subsubsection AMod Intrinsic
1368 @cindex AMod intrinsic
1369 @cindex intrinsics, AMod
1373 AMod(@var{A}, @var{P})
1377 AMod: @code{REAL(KIND=1)} function.
1380 @var{A}: @code{REAL(KIND=1)}; scalar; INTENT(IN).
1383 @var{P}: @code{REAL(KIND=1)}; scalar; INTENT(IN).
1386 Intrinsic groups: (standard FORTRAN 77).
1391 Archaic form of @code{MOD()} that is specific
1392 to one type for @var{A}.
1393 @xref{Mod Intrinsic}.
1398 @subsubsection And Intrinsic
1399 @cindex And intrinsic
1400 @cindex intrinsics, And
1404 And(@var{I}, @var{J})
1408 And: @code{INTEGER} or @code{LOGICAL} function, the exact type being the result of cross-promoting the
1409 types of all the arguments.
1412 @var{I}: @code{INTEGER} or @code{LOGICAL}; scalar; INTENT(IN).
1415 @var{J}: @code{INTEGER} or @code{LOGICAL}; scalar; INTENT(IN).
1418 Intrinsic groups: @code{f2c}.
1423 Returns value resulting from boolean AND of
1424 pair of bits in each of @var{I} and @var{J}.
1428 @node ANInt Intrinsic
1429 @subsubsection ANInt Intrinsic
1430 @cindex ANInt intrinsic
1431 @cindex intrinsics, ANInt
1439 ANInt: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{A}.
1442 @var{A}: @code{REAL}; scalar; INTENT(IN).
1445 Intrinsic groups: (standard FORTRAN 77).
1450 Returns @var{A} with the fractional portion of its
1451 magnitude eliminated by rounding to the nearest whole
1452 number and with its sign preserved.
1454 A fractional portion exactly equal to
1455 @samp{.5} is rounded to the whole number that
1456 is larger in magnitude.
1457 (Also called ``Fortran round''.)
1459 @xref{AInt Intrinsic}, for how to truncate to
1462 @xref{NInt Intrinsic}, for how to round and then convert
1463 number to @code{INTEGER}.
1468 @subsubsection Any Intrinsic
1469 @cindex Any intrinsic
1470 @cindex intrinsics, Any
1472 This intrinsic is not yet implemented.
1473 The name is, however, reserved as an intrinsic.
1474 Use @samp{EXTERNAL Any} to use this name for an
1479 @node ASin Intrinsic
1480 @subsubsection ASin Intrinsic
1481 @cindex ASin intrinsic
1482 @cindex intrinsics, ASin
1490 ASin: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{X}.
1493 @var{X}: @code{REAL}; scalar; INTENT(IN).
1496 Intrinsic groups: (standard FORTRAN 77).
1501 Returns the arc-sine (inverse sine) of @var{X}
1504 @xref{Sin Intrinsic}, for the inverse of this function.
1508 @node ASinD Intrinsic
1509 @subsubsection ASinD Intrinsic
1510 @cindex ASinD intrinsic
1511 @cindex intrinsics, ASinD
1513 This intrinsic is not yet implemented.
1514 The name is, however, reserved as an intrinsic.
1515 Use @samp{EXTERNAL ASinD} to use this name for an
1520 @node Associated Intrinsic
1521 @subsubsection Associated Intrinsic
1522 @cindex Associated intrinsic
1523 @cindex intrinsics, Associated
1525 This intrinsic is not yet implemented.
1526 The name is, however, reserved as an intrinsic.
1527 Use @samp{EXTERNAL Associated} to use this name for an
1532 @node ATan Intrinsic
1533 @subsubsection ATan Intrinsic
1534 @cindex ATan intrinsic
1535 @cindex intrinsics, ATan
1543 ATan: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{X}.
1546 @var{X}: @code{REAL}; scalar; INTENT(IN).
1549 Intrinsic groups: (standard FORTRAN 77).
1554 Returns the arc-tangent (inverse tangent) of @var{X}
1557 @xref{Tan Intrinsic}, for the inverse of this function.
1559 @node ATan2 Intrinsic
1560 @subsubsection ATan2 Intrinsic
1561 @cindex ATan2 intrinsic
1562 @cindex intrinsics, ATan2
1566 ATan2(@var{Y}, @var{X})
1570 ATan2: @code{REAL} function, the exact type being the result of cross-promoting the
1571 types of all the arguments.
1574 @var{Y}: @code{REAL}; scalar; INTENT(IN).
1577 @var{X}: @code{REAL}; scalar; INTENT(IN).
1580 Intrinsic groups: (standard FORTRAN 77).
1585 Returns the arc-tangent (inverse tangent) of the complex
1586 number (@var{Y}, @var{X}) in radians.
1588 @xref{Tan Intrinsic}, for the inverse of this function.
1592 @node ATan2D Intrinsic
1593 @subsubsection ATan2D Intrinsic
1594 @cindex ATan2D intrinsic
1595 @cindex intrinsics, ATan2D
1597 This intrinsic is not yet implemented.
1598 The name is, however, reserved as an intrinsic.
1599 Use @samp{EXTERNAL ATan2D} to use this name for an
1602 @node ATanD Intrinsic
1603 @subsubsection ATanD Intrinsic
1604 @cindex ATanD intrinsic
1605 @cindex intrinsics, ATanD
1607 This intrinsic is not yet implemented.
1608 The name is, however, reserved as an intrinsic.
1609 Use @samp{EXTERNAL ATanD} to use this name for an
1614 @node BesJ0 Intrinsic
1615 @subsubsection BesJ0 Intrinsic
1616 @cindex BesJ0 intrinsic
1617 @cindex intrinsics, BesJ0
1625 BesJ0: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{X}.
1628 @var{X}: @code{REAL}; scalar; INTENT(IN).
1631 Intrinsic groups: @code{unix}.
1636 Calculates the Bessel function of the first kind of order 0 of @var{X}.
1637 See @code{bessel(3m)}, on whose implementation the function depends.
1638 @node BesJ1 Intrinsic
1639 @subsubsection BesJ1 Intrinsic
1640 @cindex BesJ1 intrinsic
1641 @cindex intrinsics, BesJ1
1649 BesJ1: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{X}.
1652 @var{X}: @code{REAL}; scalar; INTENT(IN).
1655 Intrinsic groups: @code{unix}.
1660 Calculates the Bessel function of the first kind of order 1 of @var{X}.
1661 See @code{bessel(3m)}, on whose implementation the function depends.
1662 @node BesJN Intrinsic
1663 @subsubsection BesJN Intrinsic
1664 @cindex BesJN intrinsic
1665 @cindex intrinsics, BesJN
1669 BesJN(@var{N}, @var{X})
1673 BesJN: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{X}.
1676 @var{N}: @code{INTEGER}; scalar; INTENT(IN).
1679 @var{X}: @code{REAL}; scalar; INTENT(IN).
1682 Intrinsic groups: @code{unix}.
1687 Calculates the Bessel function of the first kind of order @var{N} of @var{X}.
1688 See @code{bessel(3m)}, on whose implementation the function depends.
1689 @node BesY0 Intrinsic
1690 @subsubsection BesY0 Intrinsic
1691 @cindex BesY0 intrinsic
1692 @cindex intrinsics, BesY0
1700 BesY0: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{X}.
1703 @var{X}: @code{REAL}; scalar; INTENT(IN).
1706 Intrinsic groups: @code{unix}.
1711 Calculates the Bessel function of the second kind of order 0 of @var{X}.
1712 See @code{bessel(3m)}, on whose implementation the function depends.
1713 @node BesY1 Intrinsic
1714 @subsubsection BesY1 Intrinsic
1715 @cindex BesY1 intrinsic
1716 @cindex intrinsics, BesY1
1724 BesY1: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{X}.
1727 @var{X}: @code{REAL}; scalar; INTENT(IN).
1730 Intrinsic groups: @code{unix}.
1735 Calculates the Bessel function of the second kind of order 1 of @var{X}.
1736 See @code{bessel(3m)}, on whose implementation the function depends.
1737 @node BesYN Intrinsic
1738 @subsubsection BesYN Intrinsic
1739 @cindex BesYN intrinsic
1740 @cindex intrinsics, BesYN
1744 BesYN(@var{N}, @var{X})
1748 BesYN: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{X}.
1751 @var{N}: @code{INTEGER}; scalar; INTENT(IN).
1754 @var{X}: @code{REAL}; scalar; INTENT(IN).
1757 Intrinsic groups: @code{unix}.
1762 Calculates the Bessel function of the second kind of order @var{N} of @var{X}.
1763 See @code{bessel(3m)}, on whose implementation the function depends.
1766 @node BITest Intrinsic
1767 @subsubsection BITest Intrinsic
1768 @cindex BITest intrinsic
1769 @cindex intrinsics, BITest
1771 This intrinsic is not yet implemented.
1772 The name is, however, reserved as an intrinsic.
1773 Use @samp{EXTERNAL BITest} to use this name for an
1778 @node Bit_Size Intrinsic
1779 @subsubsection Bit_Size Intrinsic
1780 @cindex Bit_Size intrinsic
1781 @cindex intrinsics, Bit_Size
1789 Bit_Size: @code{INTEGER} function, the @samp{KIND=} value of the type being that of argument @var{I}.
1792 @var{I}: @code{INTEGER}; scalar.
1795 Intrinsic groups: @code{f90}.
1800 Returns the number of bits (integer precision plus sign bit)
1801 represented by the type for @var{I}.
1803 @xref{BTest Intrinsic}, for how to test the value of a
1804 bit in a variable or array.
1806 @xref{IBSet Intrinsic}, for how to set a bit in a variable to 1.
1808 @xref{IBClr Intrinsic}, for how to set a bit in a variable to 0.
1813 @node BJTest Intrinsic
1814 @subsubsection BJTest Intrinsic
1815 @cindex BJTest intrinsic
1816 @cindex intrinsics, BJTest
1818 This intrinsic is not yet implemented.
1819 The name is, however, reserved as an intrinsic.
1820 Use @samp{EXTERNAL BJTest} to use this name for an
1825 @node BTest Intrinsic
1826 @subsubsection BTest Intrinsic
1827 @cindex BTest intrinsic
1828 @cindex intrinsics, BTest
1832 BTest(@var{I}, @var{Pos})
1836 BTest: @code{LOGICAL(KIND=1)} function.
1839 @var{I}: @code{INTEGER}; scalar; INTENT(IN).
1842 @var{Pos}: @code{INTEGER}; scalar; INTENT(IN).
1845 Intrinsic groups: @code{mil}, @code{f90}, @code{vxt}.
1850 Returns @code{.TRUE.} if bit @var{Pos} in @var{I} is
1851 1, @code{.FALSE.} otherwise.
1853 (Bit 0 is the low-order (rightmost) bit, adding the value
1863 to the number if set to 1;
1864 bit 1 is the next-higher-order bit, adding
1885 @xref{Bit_Size Intrinsic}, for how to obtain the number of bits
1887 The leftmost bit of @var{I} is @samp{BIT_SIZE(@var{I}-1)}.
1891 @node CAbs Intrinsic
1892 @subsubsection CAbs Intrinsic
1893 @cindex CAbs intrinsic
1894 @cindex intrinsics, CAbs
1902 CAbs: @code{REAL(KIND=1)} function.
1905 @var{A}: @code{COMPLEX(KIND=1)}; scalar; INTENT(IN).
1908 Intrinsic groups: (standard FORTRAN 77).
1913 Archaic form of @code{ABS()} that is specific
1914 to one type for @var{A}.
1915 @xref{Abs Intrinsic}.
1917 @node CCos Intrinsic
1918 @subsubsection CCos Intrinsic
1919 @cindex CCos intrinsic
1920 @cindex intrinsics, CCos
1928 CCos: @code{COMPLEX(KIND=1)} function.
1931 @var{X}: @code{COMPLEX(KIND=1)}; scalar; INTENT(IN).
1934 Intrinsic groups: (standard FORTRAN 77).
1939 Archaic form of @code{COS()} that is specific
1940 to one type for @var{X}.
1941 @xref{Cos Intrinsic}.
1945 @node CDAbs Intrinsic
1946 @subsubsection CDAbs Intrinsic
1947 @cindex CDAbs intrinsic
1948 @cindex intrinsics, CDAbs
1956 CDAbs: @code{REAL(KIND=2)} function.
1959 @var{A}: @code{COMPLEX(KIND=2)}; scalar; INTENT(IN).
1962 Intrinsic groups: @code{f2c}, @code{vxt}.
1967 Archaic form of @code{ABS()} that is specific
1968 to one type for @var{A}.
1969 @xref{Abs Intrinsic}.
1971 @node CDCos Intrinsic
1972 @subsubsection CDCos Intrinsic
1973 @cindex CDCos intrinsic
1974 @cindex intrinsics, CDCos
1982 CDCos: @code{COMPLEX(KIND=2)} function.
1985 @var{X}: @code{COMPLEX(KIND=2)}; scalar; INTENT(IN).
1988 Intrinsic groups: @code{f2c}, @code{vxt}.
1993 Archaic form of @code{COS()} that is specific
1994 to one type for @var{X}.
1995 @xref{Cos Intrinsic}.
1997 @node CDExp Intrinsic
1998 @subsubsection CDExp Intrinsic
1999 @cindex CDExp intrinsic
2000 @cindex intrinsics, CDExp
2008 CDExp: @code{COMPLEX(KIND=2)} function.
2011 @var{X}: @code{COMPLEX(KIND=2)}; scalar; INTENT(IN).
2014 Intrinsic groups: @code{f2c}, @code{vxt}.
2019 Archaic form of @code{EXP()} that is specific
2020 to one type for @var{X}.
2021 @xref{Exp Intrinsic}.
2023 @node CDLog Intrinsic
2024 @subsubsection CDLog Intrinsic
2025 @cindex CDLog intrinsic
2026 @cindex intrinsics, CDLog
2034 CDLog: @code{COMPLEX(KIND=2)} function.
2037 @var{X}: @code{COMPLEX(KIND=2)}; scalar; INTENT(IN).
2040 Intrinsic groups: @code{f2c}, @code{vxt}.
2045 Archaic form of @code{LOG()} that is specific
2046 to one type for @var{X}.
2047 @xref{Log Intrinsic}.
2049 @node CDSin Intrinsic
2050 @subsubsection CDSin Intrinsic
2051 @cindex CDSin intrinsic
2052 @cindex intrinsics, CDSin
2060 CDSin: @code{COMPLEX(KIND=2)} function.
2063 @var{X}: @code{COMPLEX(KIND=2)}; scalar; INTENT(IN).
2066 Intrinsic groups: @code{f2c}, @code{vxt}.
2071 Archaic form of @code{SIN()} that is specific
2072 to one type for @var{X}.
2073 @xref{Sin Intrinsic}.
2075 @node CDSqRt Intrinsic
2076 @subsubsection CDSqRt Intrinsic
2077 @cindex CDSqRt intrinsic
2078 @cindex intrinsics, CDSqRt
2086 CDSqRt: @code{COMPLEX(KIND=2)} function.
2089 @var{X}: @code{COMPLEX(KIND=2)}; scalar; INTENT(IN).
2092 Intrinsic groups: @code{f2c}, @code{vxt}.
2097 Archaic form of @code{SQRT()} that is specific
2098 to one type for @var{X}.
2099 @xref{SqRt Intrinsic}.
2103 @node Ceiling Intrinsic
2104 @subsubsection Ceiling Intrinsic
2105 @cindex Ceiling intrinsic
2106 @cindex intrinsics, Ceiling
2108 This intrinsic is not yet implemented.
2109 The name is, however, reserved as an intrinsic.
2110 Use @samp{EXTERNAL Ceiling} to use this name for an
2115 @node CExp Intrinsic
2116 @subsubsection CExp Intrinsic
2117 @cindex CExp intrinsic
2118 @cindex intrinsics, CExp
2126 CExp: @code{COMPLEX(KIND=1)} function.
2129 @var{X}: @code{COMPLEX(KIND=1)}; scalar; INTENT(IN).
2132 Intrinsic groups: (standard FORTRAN 77).
2137 Archaic form of @code{EXP()} that is specific
2138 to one type for @var{X}.
2139 @xref{Exp Intrinsic}.
2141 @node Char Intrinsic
2142 @subsubsection Char Intrinsic
2143 @cindex Char intrinsic
2144 @cindex intrinsics, Char
2152 Char: @code{CHARACTER*1} function.
2155 @var{I}: @code{INTEGER}; scalar; INTENT(IN).
2158 Intrinsic groups: (standard FORTRAN 77).
2163 Returns the character corresponding to the
2164 code specified by @var{I}, using the system's
2165 native character set.
2167 Because the system's native character set is used,
2168 the correspondence between character and their codes
2169 is not necessarily the same between GNU Fortran
2172 Note that no intrinsic exists to convert a numerical
2173 value to a printable character string.
2174 For example, there is no intrinsic that, given
2175 an @code{INTEGER} or @code{REAL} argument with the
2176 value @samp{154}, returns the @code{CHARACTER}
2177 result @samp{'154'}.
2179 Instead, you can use internal-file I/O to do this kind
2187 WRITE (STRING, '(I10)'), VALUE
2192 The above program, when run, prints:
2198 @xref{IChar Intrinsic}, for the inverse of the @code{CHAR} function.
2200 @xref{AChar Intrinsic}, for the function corresponding
2201 to the ASCII character set.
2205 @node ChDir Intrinsic (subroutine)
2206 @subsubsection ChDir Intrinsic (subroutine)
2207 @cindex ChDir intrinsic
2208 @cindex intrinsics, ChDir
2212 CALL ChDir(@var{Dir}, @var{Status})
2216 @var{Dir}: @code{CHARACTER}; scalar; INTENT(IN).
2219 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
2222 Intrinsic groups: @code{unix}.
2227 Sets the current working directory to be @var{Dir}.
2228 If the @var{Status} argument is supplied, it contains 0
2229 on success or a non-zero error code otherwise upon return.
2230 See @code{chdir(3)}.
2232 @emph{Caution:} Using this routine during I/O to a unit connected with a
2233 non-absolute file name can cause subsequent I/O on such a unit to fail
2234 because the I/O library might reopen files by name.
2236 Some non-GNU implementations of Fortran provide this intrinsic as
2237 only a function, not as a subroutine, or do not support the
2238 (optional) @var{Status} argument.
2240 For information on other intrinsics with the same name:
2241 @xref{ChDir Intrinsic (function)}.
2245 @node ChDir Intrinsic (function)
2246 @subsubsection ChDir Intrinsic (function)
2247 @cindex ChDir intrinsic
2248 @cindex intrinsics, ChDir
2256 ChDir: @code{INTEGER(KIND=1)} function.
2259 @var{Dir}: @code{CHARACTER}; scalar; INTENT(IN).
2262 Intrinsic groups: @code{badu77}.
2267 Sets the current working directory to be @var{Dir}.
2268 Returns 0 on success or a non-zero error code.
2269 See @code{chdir(3)}.
2271 @emph{Caution:} Using this routine during I/O to a unit connected with a
2272 non-absolute file name can cause subsequent I/O on such a unit to fail
2273 because the I/O library might reopen files by name.
2275 Due to the side effects performed by this intrinsic, the function
2276 form is not recommended.
2278 For information on other intrinsics with the same name:
2279 @xref{ChDir Intrinsic (subroutine)}.
2283 @node ChMod Intrinsic (subroutine)
2284 @subsubsection ChMod Intrinsic (subroutine)
2285 @cindex ChMod intrinsic
2286 @cindex intrinsics, ChMod
2290 CALL ChMod(@var{Name}, @var{Mode}, @var{Status})
2294 @var{Name}: @code{CHARACTER}; scalar; INTENT(IN).
2297 @var{Mode}: @code{CHARACTER}; scalar; INTENT(IN).
2300 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
2303 Intrinsic groups: @code{unix}.
2308 Changes the access mode of file @var{Name} according to the
2309 specification @var{Mode}, which is given in the format of
2311 A null character (@samp{CHAR(0)}) marks the end of
2312 the name in @var{Name}---otherwise,
2313 trailing blanks in @var{Name} are ignored.
2314 Currently, @var{Name} must not contain the single quote
2317 If the @var{Status} argument is supplied, it contains
2318 0 on success or a non-zero error code upon return.
2320 Note that this currently works
2321 by actually invoking @code{/bin/chmod} (or the @code{chmod} found when
2322 the library was configured) and so might fail in some circumstances and
2323 will, anyway, be slow.
2325 Some non-GNU implementations of Fortran provide this intrinsic as
2326 only a function, not as a subroutine, or do not support the
2327 (optional) @var{Status} argument.
2329 For information on other intrinsics with the same name:
2330 @xref{ChMod Intrinsic (function)}.
2334 @node ChMod Intrinsic (function)
2335 @subsubsection ChMod Intrinsic (function)
2336 @cindex ChMod intrinsic
2337 @cindex intrinsics, ChMod
2341 ChMod(@var{Name}, @var{Mode})
2345 ChMod: @code{INTEGER(KIND=1)} function.
2348 @var{Name}: @code{CHARACTER}; scalar; INTENT(IN).
2351 @var{Mode}: @code{CHARACTER}; scalar; INTENT(IN).
2354 Intrinsic groups: @code{badu77}.
2359 Changes the access mode of file @var{Name} according to the
2360 specification @var{Mode}, which is given in the format of
2362 A null character (@samp{CHAR(0)}) marks the end of
2363 the name in @var{Name}---otherwise,
2364 trailing blanks in @var{Name} are ignored.
2365 Currently, @var{Name} must not contain the single quote
2368 Returns 0 on success or a non-zero error code otherwise.
2370 Note that this currently works
2371 by actually invoking @code{/bin/chmod} (or the @code{chmod} found when
2372 the library was configured) and so might fail in some circumstances and
2373 will, anyway, be slow.
2375 Due to the side effects performed by this intrinsic, the function
2376 form is not recommended.
2378 For information on other intrinsics with the same name:
2379 @xref{ChMod Intrinsic (subroutine)}.
2383 @node CLog Intrinsic
2384 @subsubsection CLog Intrinsic
2385 @cindex CLog intrinsic
2386 @cindex intrinsics, CLog
2394 CLog: @code{COMPLEX(KIND=1)} function.
2397 @var{X}: @code{COMPLEX(KIND=1)}; scalar; INTENT(IN).
2400 Intrinsic groups: (standard FORTRAN 77).
2405 Archaic form of @code{LOG()} that is specific
2406 to one type for @var{X}.
2407 @xref{Log Intrinsic}.
2409 @node Cmplx Intrinsic
2410 @subsubsection Cmplx Intrinsic
2411 @cindex Cmplx intrinsic
2412 @cindex intrinsics, Cmplx
2416 Cmplx(@var{X}, @var{Y})
2420 Cmplx: @code{COMPLEX(KIND=1)} function.
2423 @var{X}: @code{INTEGER}, @code{REAL}, or @code{COMPLEX}; scalar; INTENT(IN).
2426 @var{Y}: @code{INTEGER} or @code{REAL}; OPTIONAL (must be omitted if @var{X} is @code{COMPLEX}); scalar; INTENT(IN).
2429 Intrinsic groups: (standard FORTRAN 77).
2434 If @var{X} is not type @code{COMPLEX},
2435 constructs a value of type @code{COMPLEX(KIND=1)} from the
2436 real and imaginary values specified by @var{X} and
2437 @var{Y}, respectively.
2438 If @var{Y} is omitted, @samp{0.} is assumed.
2440 If @var{X} is type @code{COMPLEX},
2441 converts it to type @code{COMPLEX(KIND=1)}.
2443 @xref{Complex Intrinsic}, for information on easily constructing
2444 a @code{COMPLEX} value of arbitrary precision from @code{REAL}
2449 @node Complex Intrinsic
2450 @subsubsection Complex Intrinsic
2451 @cindex Complex intrinsic
2452 @cindex intrinsics, Complex
2456 Complex(@var{Real}, @var{Imag})
2460 Complex: @code{COMPLEX} function, the exact type being the result of cross-promoting the
2461 types of all the arguments.
2464 @var{Real}: @code{INTEGER} or @code{REAL}; scalar; INTENT(IN).
2467 @var{Imag}: @code{INTEGER} or @code{REAL}; scalar; INTENT(IN).
2470 Intrinsic groups: @code{gnu}.
2475 Returns a @code{COMPLEX} value that has @samp{Real} and @samp{Imag} as its
2476 real and imaginary parts, respectively.
2478 If @var{Real} and @var{Imag} are the same type, and that type is not
2479 @code{INTEGER}, no data conversion is performed, and the type of
2480 the resulting value has the same kind value as the types
2481 of @var{Real} and @var{Imag}.
2483 If @var{Real} and @var{Imag} are not the same type, the usual type-promotion
2484 rules are applied to both, converting either or both to the
2485 appropriate @code{REAL} type.
2486 The type of the resulting value has the same kind value as the
2487 type to which both @var{Real} and @var{Imag} were converted, in this case.
2489 If @var{Real} and @var{Imag} are both @code{INTEGER}, they are both converted
2490 to @code{REAL(KIND=1)}, and the result of the @code{COMPLEX()}
2491 invocation is type @code{COMPLEX(KIND=1)}.
2493 @emph{Note:} The way to do this in standard Fortran 90
2494 is too hairy to describe here, but it is important to
2495 note that @samp{CMPLX(D1,D2)} returns a @code{COMPLEX(KIND=1)}
2496 result even if @samp{D1} and @samp{D2} are type @code{REAL(KIND=2)}.
2497 Hence the availability of @code{COMPLEX()} in GNU Fortran.
2501 @node Conjg Intrinsic
2502 @subsubsection Conjg Intrinsic
2503 @cindex Conjg intrinsic
2504 @cindex intrinsics, Conjg
2512 Conjg: @code{COMPLEX} function, the @samp{KIND=} value of the type being that of argument @var{Z}.
2515 @var{Z}: @code{COMPLEX}; scalar; INTENT(IN).
2518 Intrinsic groups: (standard FORTRAN 77).
2523 Returns the complex conjugate:
2526 COMPLEX(REALPART(@var{Z}), -IMAGPART(@var{Z}))
2530 @subsubsection Cos Intrinsic
2531 @cindex Cos intrinsic
2532 @cindex intrinsics, Cos
2540 Cos: @code{REAL} or @code{COMPLEX} function, the exact type being that of argument @var{X}.
2543 @var{X}: @code{REAL} or @code{COMPLEX}; scalar; INTENT(IN).
2546 Intrinsic groups: (standard FORTRAN 77).
2551 Returns the cosine of @var{X}, an angle measured
2554 @xref{ACos Intrinsic}, for the inverse of this function.
2558 @node CosD Intrinsic
2559 @subsubsection CosD Intrinsic
2560 @cindex CosD intrinsic
2561 @cindex intrinsics, CosD
2563 This intrinsic is not yet implemented.
2564 The name is, however, reserved as an intrinsic.
2565 Use @samp{EXTERNAL CosD} to use this name for an
2570 @node CosH Intrinsic
2571 @subsubsection CosH Intrinsic
2572 @cindex CosH intrinsic
2573 @cindex intrinsics, CosH
2581 CosH: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{X}.
2584 @var{X}: @code{REAL}; scalar; INTENT(IN).
2587 Intrinsic groups: (standard FORTRAN 77).
2592 Returns the hyperbolic cosine of @var{X}.
2596 @node Count Intrinsic
2597 @subsubsection Count Intrinsic
2598 @cindex Count intrinsic
2599 @cindex intrinsics, Count
2601 This intrinsic is not yet implemented.
2602 The name is, however, reserved as an intrinsic.
2603 Use @samp{EXTERNAL Count} to use this name for an
2606 @node CPU_Time Intrinsic
2607 @subsubsection CPU_Time Intrinsic
2608 @cindex CPU_Time intrinsic
2609 @cindex intrinsics, CPU_Time
2613 CALL CPU_Time(@var{Seconds})
2617 @var{Seconds}: @code{REAL}; scalar; INTENT(OUT).
2620 Intrinsic groups: @code{f90}.
2625 Returns in @var{Seconds} the current value of the system time.
2626 This implementation of the Fortran 95 intrinsic is just an alias for
2627 @code{second} @xref{Second Intrinsic (subroutine)}.
2629 @cindex wraparound, timings
2630 @cindex limits, timings
2631 On some systems, the underlying timings are represented
2632 using types with sufficiently small limits that overflows
2633 (wraparounds) are possible, such as 32-bit types.
2634 Therefore, the values returned by this intrinsic
2635 might be, or become, negative,
2636 or numerically less than previous values,
2637 during a single run of the compiled program.
2639 @node CShift Intrinsic
2640 @subsubsection CShift Intrinsic
2641 @cindex CShift intrinsic
2642 @cindex intrinsics, CShift
2644 This intrinsic is not yet implemented.
2645 The name is, however, reserved as an intrinsic.
2646 Use @samp{EXTERNAL CShift} to use this name for an
2651 @node CSin Intrinsic
2652 @subsubsection CSin Intrinsic
2653 @cindex CSin intrinsic
2654 @cindex intrinsics, CSin
2662 CSin: @code{COMPLEX(KIND=1)} function.
2665 @var{X}: @code{COMPLEX(KIND=1)}; scalar; INTENT(IN).
2668 Intrinsic groups: (standard FORTRAN 77).
2673 Archaic form of @code{SIN()} that is specific
2674 to one type for @var{X}.
2675 @xref{Sin Intrinsic}.
2677 @node CSqRt Intrinsic
2678 @subsubsection CSqRt Intrinsic
2679 @cindex CSqRt intrinsic
2680 @cindex intrinsics, CSqRt
2688 CSqRt: @code{COMPLEX(KIND=1)} function.
2691 @var{X}: @code{COMPLEX(KIND=1)}; scalar; INTENT(IN).
2694 Intrinsic groups: (standard FORTRAN 77).
2699 Archaic form of @code{SQRT()} that is specific
2700 to one type for @var{X}.
2701 @xref{SqRt Intrinsic}.
2705 @node CTime Intrinsic (subroutine)
2706 @subsubsection CTime Intrinsic (subroutine)
2707 @cindex CTime intrinsic
2708 @cindex intrinsics, CTime
2712 CALL CTime(@var{STime}, @var{Result})
2716 @var{STime}: @code{INTEGER}; scalar; INTENT(IN).
2719 @var{Result}: @code{CHARACTER}; scalar; INTENT(OUT).
2722 Intrinsic groups: @code{unix}.
2727 Converts @var{STime}, a system time value, such as returned by
2728 @code{TIME8()}, to a string of the form @samp{Sat Aug 19 18:13:14 1995},
2729 and returns that string in @var{Result}.
2731 @xref{Time8 Intrinsic}.
2733 Some non-GNU implementations of Fortran provide this intrinsic as
2734 only a function, not as a subroutine.
2736 For information on other intrinsics with the same name:
2737 @xref{CTime Intrinsic (function)}.
2739 @node CTime Intrinsic (function)
2740 @subsubsection CTime Intrinsic (function)
2741 @cindex CTime intrinsic
2742 @cindex intrinsics, CTime
2750 CTime: @code{CHARACTER*(*)} function.
2753 @var{STime}: @code{INTEGER}; scalar; INTENT(IN).
2756 Intrinsic groups: @code{unix}.
2761 Converts @var{STime}, a system time value, such as returned by
2762 @code{TIME8()}, to a string of the form @samp{Sat Aug 19 18:13:14 1995},
2763 and returns that string as the function value.
2765 @xref{Time8 Intrinsic}.
2767 For information on other intrinsics with the same name:
2768 @xref{CTime Intrinsic (subroutine)}.
2772 @node DAbs Intrinsic
2773 @subsubsection DAbs Intrinsic
2774 @cindex DAbs intrinsic
2775 @cindex intrinsics, DAbs
2783 DAbs: @code{REAL(KIND=2)} function.
2786 @var{A}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
2789 Intrinsic groups: (standard FORTRAN 77).
2794 Archaic form of @code{ABS()} that is specific
2795 to one type for @var{A}.
2796 @xref{Abs Intrinsic}.
2798 @node DACos Intrinsic
2799 @subsubsection DACos Intrinsic
2800 @cindex DACos intrinsic
2801 @cindex intrinsics, DACos
2809 DACos: @code{REAL(KIND=2)} function.
2812 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
2815 Intrinsic groups: (standard FORTRAN 77).
2820 Archaic form of @code{ACOS()} that is specific
2821 to one type for @var{X}.
2822 @xref{ACos Intrinsic}.
2826 @node DACosD Intrinsic
2827 @subsubsection DACosD Intrinsic
2828 @cindex DACosD intrinsic
2829 @cindex intrinsics, DACosD
2831 This intrinsic is not yet implemented.
2832 The name is, however, reserved as an intrinsic.
2833 Use @samp{EXTERNAL DACosD} to use this name for an
2838 @node DASin Intrinsic
2839 @subsubsection DASin Intrinsic
2840 @cindex DASin intrinsic
2841 @cindex intrinsics, DASin
2849 DASin: @code{REAL(KIND=2)} function.
2852 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
2855 Intrinsic groups: (standard FORTRAN 77).
2860 Archaic form of @code{ASIN()} that is specific
2861 to one type for @var{X}.
2862 @xref{ASin Intrinsic}.
2866 @node DASinD Intrinsic
2867 @subsubsection DASinD Intrinsic
2868 @cindex DASinD intrinsic
2869 @cindex intrinsics, DASinD
2871 This intrinsic is not yet implemented.
2872 The name is, however, reserved as an intrinsic.
2873 Use @samp{EXTERNAL DASinD} to use this name for an
2878 @node DATan Intrinsic
2879 @subsubsection DATan Intrinsic
2880 @cindex DATan intrinsic
2881 @cindex intrinsics, DATan
2889 DATan: @code{REAL(KIND=2)} function.
2892 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
2895 Intrinsic groups: (standard FORTRAN 77).
2900 Archaic form of @code{ATAN()} that is specific
2901 to one type for @var{X}.
2902 @xref{ATan Intrinsic}.
2904 @node DATan2 Intrinsic
2905 @subsubsection DATan2 Intrinsic
2906 @cindex DATan2 intrinsic
2907 @cindex intrinsics, DATan2
2911 DATan2(@var{Y}, @var{X})
2915 DATan2: @code{REAL(KIND=2)} function.
2918 @var{Y}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
2921 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
2924 Intrinsic groups: (standard FORTRAN 77).
2929 Archaic form of @code{ATAN2()} that is specific
2930 to one type for @var{Y} and @var{X}.
2931 @xref{ATan2 Intrinsic}.
2935 @node DATan2D Intrinsic
2936 @subsubsection DATan2D Intrinsic
2937 @cindex DATan2D intrinsic
2938 @cindex intrinsics, DATan2D
2940 This intrinsic is not yet implemented.
2941 The name is, however, reserved as an intrinsic.
2942 Use @samp{EXTERNAL DATan2D} to use this name for an
2945 @node DATanD Intrinsic
2946 @subsubsection DATanD Intrinsic
2947 @cindex DATanD intrinsic
2948 @cindex intrinsics, DATanD
2950 This intrinsic is not yet implemented.
2951 The name is, however, reserved as an intrinsic.
2952 Use @samp{EXTERNAL DATanD} to use this name for an
2955 @node Date Intrinsic
2956 @subsubsection Date Intrinsic
2957 @cindex Date intrinsic
2958 @cindex intrinsics, Date
2962 CALL Date(@var{Date})
2966 @var{Date}: @code{CHARACTER}; scalar; INTENT(OUT).
2969 Intrinsic groups: @code{vxt}.
2974 Returns @var{Date} in the form @samp{@var{dd}-@var{mmm}-@var{yy}},
2975 representing the numeric day of the month @var{dd}, a three-character
2976 abbreviation of the month name @var{mmm} and the last two digits of
2977 the year @var{yy}, e.g.@: @samp{25-Nov-96}.
2979 @cindex Y2K compliance
2980 @cindex Year 2000 compliance
2981 This intrinsic is not recommended, due to the year 2000 approaching.
2982 Therefore, programs making use of this intrinsic
2983 might not be Year 2000 (Y2K) compliant.
2984 @xref{CTime Intrinsic (subroutine)}, for information on obtaining more digits
2985 for the current (or any) date.
2989 @node Date_and_Time Intrinsic
2990 @subsubsection Date_and_Time Intrinsic
2991 @cindex Date_and_Time intrinsic
2992 @cindex intrinsics, Date_and_Time
2996 CALL Date_and_Time(@var{Date}, @var{Time}, @var{Zone}, @var{Values})
3000 @var{Date}: @code{CHARACTER}; scalar; INTENT(OUT).
3003 @var{Time}: @code{CHARACTER}; OPTIONAL; scalar; INTENT(OUT).
3006 @var{Zone}: @code{CHARACTER}; OPTIONAL; scalar; INTENT(OUT).
3009 @var{Values}: @code{INTEGER(KIND=1)}; OPTIONAL; DIMENSION(8); INTENT(OUT).
3012 Intrinsic groups: @code{f90}.
3020 The date in the form @var{ccyymmdd}: century, year, month and day;
3022 The time in the form @samp{@var{hhmmss.ss}}: hours, minutes, seconds
3025 The difference between local time and UTC (GMT) in the form @var{Shhmm}:
3026 sign, hours and minutes, e.g.@: @samp{-0500} (winter in New York);
3028 The year, month of the year, day of the month, time difference in
3029 minutes from UTC, hour of the day, minutes of the hour, seconds
3030 of the minute, and milliseconds
3031 of the second in successive values of the array.
3034 @cindex Y10K compliance
3035 @cindex Year 10000 compliance
3036 @cindex wraparound, Y10K
3037 @cindex limits, Y10K
3038 Programs making use of this intrinsic
3039 might not be Year 10000 (Y10K) compliant.
3040 For example, the date might appear,
3041 to such programs, to wrap around
3042 (change from a larger value to a smaller one)
3043 as of the Year 10000.
3045 On systems where a millisecond timer isn't available, the millisecond
3046 value is returned as zero.
3050 @node DbesJ0 Intrinsic
3051 @subsubsection DbesJ0 Intrinsic
3052 @cindex DbesJ0 intrinsic
3053 @cindex intrinsics, DbesJ0
3061 DbesJ0: @code{REAL(KIND=2)} function.
3064 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3067 Intrinsic groups: @code{unix}.
3072 Archaic form of @code{BESJ0()} that is specific
3073 to one type for @var{X}.
3074 @xref{BesJ0 Intrinsic}.
3076 @node DbesJ1 Intrinsic
3077 @subsubsection DbesJ1 Intrinsic
3078 @cindex DbesJ1 intrinsic
3079 @cindex intrinsics, DbesJ1
3087 DbesJ1: @code{REAL(KIND=2)} function.
3090 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3093 Intrinsic groups: @code{unix}.
3098 Archaic form of @code{BESJ1()} that is specific
3099 to one type for @var{X}.
3100 @xref{BesJ1 Intrinsic}.
3102 @node DbesJN Intrinsic
3103 @subsubsection DbesJN Intrinsic
3104 @cindex DbesJN intrinsic
3105 @cindex intrinsics, DbesJN
3109 DbesJN(@var{N}, @var{X})
3113 DbesJN: @code{REAL(KIND=2)} function.
3116 @var{N}: @code{INTEGER}; scalar; INTENT(IN).
3119 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3122 Intrinsic groups: @code{unix}.
3127 Archaic form of @code{BESJN()} that is specific
3128 to one type for @var{X}.
3129 @xref{BesJN Intrinsic}.
3131 @node DbesY0 Intrinsic
3132 @subsubsection DbesY0 Intrinsic
3133 @cindex DbesY0 intrinsic
3134 @cindex intrinsics, DbesY0
3142 DbesY0: @code{REAL(KIND=2)} function.
3145 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3148 Intrinsic groups: @code{unix}.
3153 Archaic form of @code{BESY0()} that is specific
3154 to one type for @var{X}.
3155 @xref{BesY0 Intrinsic}.
3157 @node DbesY1 Intrinsic
3158 @subsubsection DbesY1 Intrinsic
3159 @cindex DbesY1 intrinsic
3160 @cindex intrinsics, DbesY1
3168 DbesY1: @code{REAL(KIND=2)} function.
3171 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3174 Intrinsic groups: @code{unix}.
3179 Archaic form of @code{BESY1()} that is specific
3180 to one type for @var{X}.
3181 @xref{BesY1 Intrinsic}.
3183 @node DbesYN Intrinsic
3184 @subsubsection DbesYN Intrinsic
3185 @cindex DbesYN intrinsic
3186 @cindex intrinsics, DbesYN
3190 DbesYN(@var{N}, @var{X})
3194 DbesYN: @code{REAL(KIND=2)} function.
3197 @var{N}: @code{INTEGER}; scalar; INTENT(IN).
3200 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3203 Intrinsic groups: @code{unix}.
3208 Archaic form of @code{BESYN()} that is specific
3209 to one type for @var{X}.
3210 @xref{BesYN Intrinsic}.
3214 @node Dble Intrinsic
3215 @subsubsection Dble Intrinsic
3216 @cindex Dble intrinsic
3217 @cindex intrinsics, Dble
3225 Dble: @code{REAL(KIND=2)} function.
3228 @var{A}: @code{INTEGER}, @code{REAL}, or @code{COMPLEX}; scalar; INTENT(IN).
3231 Intrinsic groups: (standard FORTRAN 77).
3236 Returns @var{A} converted to double precision
3237 (@code{REAL(KIND=2)}).
3238 If @var{A} is @code{COMPLEX}, the real part of
3239 @var{A} is used for the conversion
3240 and the imaginary part disregarded.
3242 @xref{Sngl Intrinsic}, for the function that converts
3243 to single precision.
3245 @xref{Int Intrinsic}, for the function that converts
3248 @xref{Complex Intrinsic}, for the function that converts
3253 @node DbleQ Intrinsic
3254 @subsubsection DbleQ Intrinsic
3255 @cindex DbleQ intrinsic
3256 @cindex intrinsics, DbleQ
3258 This intrinsic is not yet implemented.
3259 The name is, however, reserved as an intrinsic.
3260 Use @samp{EXTERNAL DbleQ} to use this name for an
3265 @node DCmplx Intrinsic
3266 @subsubsection DCmplx Intrinsic
3267 @cindex DCmplx intrinsic
3268 @cindex intrinsics, DCmplx
3272 DCmplx(@var{X}, @var{Y})
3276 DCmplx: @code{COMPLEX(KIND=2)} function.
3279 @var{X}: @code{INTEGER}, @code{REAL}, or @code{COMPLEX}; scalar; INTENT(IN).
3282 @var{Y}: @code{INTEGER} or @code{REAL}; OPTIONAL (must be omitted if @var{X} is @code{COMPLEX}); scalar; INTENT(IN).
3285 Intrinsic groups: @code{f2c}, @code{vxt}.
3290 If @var{X} is not type @code{COMPLEX},
3291 constructs a value of type @code{COMPLEX(KIND=2)} from the
3292 real and imaginary values specified by @var{X} and
3293 @var{Y}, respectively.
3294 If @var{Y} is omitted, @samp{0D0} is assumed.
3296 If @var{X} is type @code{COMPLEX},
3297 converts it to type @code{COMPLEX(KIND=2)}.
3299 Although this intrinsic is not standard Fortran,
3300 it is a popular extension offered by many compilers
3301 that support @code{DOUBLE COMPLEX}, since it offers
3302 the easiest way to convert to @code{DOUBLE COMPLEX}
3303 without using Fortran 90 features (such as the @samp{KIND=}
3304 argument to the @code{CMPLX()} intrinsic).
3306 (@samp{CMPLX(0D0, 0D0)} returns a single-precision
3307 @code{COMPLEX} result, as required by standard FORTRAN 77.
3308 That's why so many compilers provide @code{DCMPLX()}, since
3309 @samp{DCMPLX(0D0, 0D0)} returns a @code{DOUBLE COMPLEX}
3311 Still, @code{DCMPLX()} converts even @code{REAL*16} arguments
3312 to their @code{REAL*8} equivalents in most dialects of
3313 Fortran, so neither it nor @code{CMPLX()} allow easy
3314 construction of arbitrary-precision values without
3315 potentially forcing a conversion involving extending or
3317 GNU Fortran provides such an intrinsic, called @code{COMPLEX()}.)
3319 @xref{Complex Intrinsic}, for information on easily constructing
3320 a @code{COMPLEX} value of arbitrary precision from @code{REAL}
3323 @node DConjg Intrinsic
3324 @subsubsection DConjg Intrinsic
3325 @cindex DConjg intrinsic
3326 @cindex intrinsics, DConjg
3334 DConjg: @code{COMPLEX(KIND=2)} function.
3337 @var{Z}: @code{COMPLEX(KIND=2)}; scalar; INTENT(IN).
3340 Intrinsic groups: @code{f2c}, @code{vxt}.
3345 Archaic form of @code{CONJG()} that is specific
3346 to one type for @var{Z}.
3347 @xref{Conjg Intrinsic}.
3351 @node DCos Intrinsic
3352 @subsubsection DCos Intrinsic
3353 @cindex DCos intrinsic
3354 @cindex intrinsics, DCos
3362 DCos: @code{REAL(KIND=2)} function.
3365 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3368 Intrinsic groups: (standard FORTRAN 77).
3373 Archaic form of @code{COS()} that is specific
3374 to one type for @var{X}.
3375 @xref{Cos Intrinsic}.
3379 @node DCosD Intrinsic
3380 @subsubsection DCosD Intrinsic
3381 @cindex DCosD intrinsic
3382 @cindex intrinsics, DCosD
3384 This intrinsic is not yet implemented.
3385 The name is, however, reserved as an intrinsic.
3386 Use @samp{EXTERNAL DCosD} to use this name for an
3391 @node DCosH Intrinsic
3392 @subsubsection DCosH Intrinsic
3393 @cindex DCosH intrinsic
3394 @cindex intrinsics, DCosH
3402 DCosH: @code{REAL(KIND=2)} function.
3405 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3408 Intrinsic groups: (standard FORTRAN 77).
3413 Archaic form of @code{COSH()} that is specific
3414 to one type for @var{X}.
3415 @xref{CosH Intrinsic}.
3417 @node DDiM Intrinsic
3418 @subsubsection DDiM Intrinsic
3419 @cindex DDiM intrinsic
3420 @cindex intrinsics, DDiM
3424 DDiM(@var{X}, @var{Y})
3428 DDiM: @code{REAL(KIND=2)} function.
3431 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3434 @var{Y}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3437 Intrinsic groups: (standard FORTRAN 77).
3442 Archaic form of @code{DIM()} that is specific
3443 to one type for @var{X} and @var{Y}.
3444 @xref{DiM Intrinsic}.
3448 @node DErF Intrinsic
3449 @subsubsection DErF Intrinsic
3450 @cindex DErF intrinsic
3451 @cindex intrinsics, DErF
3459 DErF: @code{REAL(KIND=2)} function.
3462 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3465 Intrinsic groups: @code{unix}.
3470 Archaic form of @code{ERF()} that is specific
3471 to one type for @var{X}.
3472 @xref{ErF Intrinsic}.
3474 @node DErFC Intrinsic
3475 @subsubsection DErFC Intrinsic
3476 @cindex DErFC intrinsic
3477 @cindex intrinsics, DErFC
3485 DErFC: @code{REAL(KIND=2)} function.
3488 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3491 Intrinsic groups: @code{unix}.
3496 Archaic form of @code{ERFC()} that is specific
3497 to one type for @var{X}.
3498 @xref{ErFC Intrinsic}.
3502 @node DExp Intrinsic
3503 @subsubsection DExp Intrinsic
3504 @cindex DExp intrinsic
3505 @cindex intrinsics, DExp
3513 DExp: @code{REAL(KIND=2)} function.
3516 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3519 Intrinsic groups: (standard FORTRAN 77).
3524 Archaic form of @code{EXP()} that is specific
3525 to one type for @var{X}.
3526 @xref{Exp Intrinsic}.
3530 @node DFloat Intrinsic
3531 @subsubsection DFloat Intrinsic
3532 @cindex DFloat intrinsic
3533 @cindex intrinsics, DFloat
3541 DFloat: @code{REAL(KIND=2)} function.
3544 @var{A}: @code{INTEGER}; scalar; INTENT(IN).
3547 Intrinsic groups: @code{f2c}, @code{vxt}.
3552 Archaic form of @code{REAL()} that is specific
3553 to one type for @var{A}.
3554 @xref{Real Intrinsic}.
3558 @node DFlotI Intrinsic
3559 @subsubsection DFlotI Intrinsic
3560 @cindex DFlotI intrinsic
3561 @cindex intrinsics, DFlotI
3563 This intrinsic is not yet implemented.
3564 The name is, however, reserved as an intrinsic.
3565 Use @samp{EXTERNAL DFlotI} to use this name for an
3568 @node DFlotJ Intrinsic
3569 @subsubsection DFlotJ Intrinsic
3570 @cindex DFlotJ intrinsic
3571 @cindex intrinsics, DFlotJ
3573 This intrinsic is not yet implemented.
3574 The name is, however, reserved as an intrinsic.
3575 Use @samp{EXTERNAL DFlotJ} to use this name for an
3580 @node Digits Intrinsic
3581 @subsubsection Digits Intrinsic
3582 @cindex Digits intrinsic
3583 @cindex intrinsics, Digits
3585 This intrinsic is not yet implemented.
3586 The name is, however, reserved as an intrinsic.
3587 Use @samp{EXTERNAL Digits} to use this name for an
3593 @subsubsection DiM Intrinsic
3594 @cindex DiM intrinsic
3595 @cindex intrinsics, DiM
3599 DiM(@var{X}, @var{Y})
3603 DiM: @code{INTEGER} or @code{REAL} function, the exact type being the result of cross-promoting the
3604 types of all the arguments.
3607 @var{X}: @code{INTEGER} or @code{REAL}; scalar; INTENT(IN).
3610 @var{Y}: @code{INTEGER} or @code{REAL}; scalar; INTENT(IN).
3613 Intrinsic groups: (standard FORTRAN 77).
3618 Returns @samp{@var{X}-@var{Y}} if @var{X} is greater than
3619 @var{Y}; otherwise returns zero.
3623 @node DImag Intrinsic
3624 @subsubsection DImag Intrinsic
3625 @cindex DImag intrinsic
3626 @cindex intrinsics, DImag
3634 DImag: @code{REAL(KIND=2)} function.
3637 @var{Z}: @code{COMPLEX(KIND=2)}; scalar; INTENT(IN).
3640 Intrinsic groups: @code{f2c}, @code{vxt}.
3645 Archaic form of @code{AIMAG()} that is specific
3646 to one type for @var{Z}.
3647 @xref{AImag Intrinsic}.
3651 @node DInt Intrinsic
3652 @subsubsection DInt Intrinsic
3653 @cindex DInt intrinsic
3654 @cindex intrinsics, DInt
3662 DInt: @code{REAL(KIND=2)} function.
3665 @var{A}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3668 Intrinsic groups: (standard FORTRAN 77).
3673 Archaic form of @code{AINT()} that is specific
3674 to one type for @var{A}.
3675 @xref{AInt Intrinsic}.
3677 @node DLog Intrinsic
3678 @subsubsection DLog Intrinsic
3679 @cindex DLog intrinsic
3680 @cindex intrinsics, DLog
3688 DLog: @code{REAL(KIND=2)} function.
3691 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3694 Intrinsic groups: (standard FORTRAN 77).
3699 Archaic form of @code{LOG()} that is specific
3700 to one type for @var{X}.
3701 @xref{Log Intrinsic}.
3703 @node DLog10 Intrinsic
3704 @subsubsection DLog10 Intrinsic
3705 @cindex DLog10 intrinsic
3706 @cindex intrinsics, DLog10
3714 DLog10: @code{REAL(KIND=2)} function.
3717 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3720 Intrinsic groups: (standard FORTRAN 77).
3725 Archaic form of @code{LOG10()} that is specific
3726 to one type for @var{X}.
3727 @xref{Log10 Intrinsic}.
3729 @node DMax1 Intrinsic
3730 @subsubsection DMax1 Intrinsic
3731 @cindex DMax1 intrinsic
3732 @cindex intrinsics, DMax1
3736 DMax1(@var{A}-1, @var{A}-2, @dots{}, @var{A}-n)
3740 DMax1: @code{REAL(KIND=2)} function.
3743 @var{A}: @code{REAL(KIND=2)}; at least two such arguments must be provided; scalar; INTENT(IN).
3746 Intrinsic groups: (standard FORTRAN 77).
3751 Archaic form of @code{MAX()} that is specific
3752 to one type for @var{A}.
3753 @xref{Max Intrinsic}.
3755 @node DMin1 Intrinsic
3756 @subsubsection DMin1 Intrinsic
3757 @cindex DMin1 intrinsic
3758 @cindex intrinsics, DMin1
3762 DMin1(@var{A}-1, @var{A}-2, @dots{}, @var{A}-n)
3766 DMin1: @code{REAL(KIND=2)} function.
3769 @var{A}: @code{REAL(KIND=2)}; at least two such arguments must be provided; scalar; INTENT(IN).
3772 Intrinsic groups: (standard FORTRAN 77).
3777 Archaic form of @code{MIN()} that is specific
3778 to one type for @var{A}.
3779 @xref{Min Intrinsic}.
3781 @node DMod Intrinsic
3782 @subsubsection DMod Intrinsic
3783 @cindex DMod intrinsic
3784 @cindex intrinsics, DMod
3788 DMod(@var{A}, @var{P})
3792 DMod: @code{REAL(KIND=2)} function.
3795 @var{A}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3798 @var{P}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3801 Intrinsic groups: (standard FORTRAN 77).
3806 Archaic form of @code{MOD()} that is specific
3807 to one type for @var{A}.
3808 @xref{Mod Intrinsic}.
3810 @node DNInt Intrinsic
3811 @subsubsection DNInt Intrinsic
3812 @cindex DNInt intrinsic
3813 @cindex intrinsics, DNInt
3821 DNInt: @code{REAL(KIND=2)} function.
3824 @var{A}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3827 Intrinsic groups: (standard FORTRAN 77).
3832 Archaic form of @code{ANINT()} that is specific
3833 to one type for @var{A}.
3834 @xref{ANInt Intrinsic}.
3838 @node Dot_Product Intrinsic
3839 @subsubsection Dot_Product Intrinsic
3840 @cindex Dot_Product intrinsic
3841 @cindex intrinsics, Dot_Product
3843 This intrinsic is not yet implemented.
3844 The name is, however, reserved as an intrinsic.
3845 Use @samp{EXTERNAL Dot_Product} to use this name for an
3850 @node DProd Intrinsic
3851 @subsubsection DProd Intrinsic
3852 @cindex DProd intrinsic
3853 @cindex intrinsics, DProd
3857 DProd(@var{X}, @var{Y})
3861 DProd: @code{REAL(KIND=2)} function.
3864 @var{X}: @code{REAL(KIND=1)}; scalar; INTENT(IN).
3867 @var{Y}: @code{REAL(KIND=1)}; scalar; INTENT(IN).
3870 Intrinsic groups: (standard FORTRAN 77).
3875 Returns @samp{DBLE(@var{X})*DBLE(@var{Y})}.
3879 @node DReal Intrinsic
3880 @subsubsection DReal Intrinsic
3881 @cindex DReal intrinsic
3882 @cindex intrinsics, DReal
3890 DReal: @code{REAL(KIND=2)} function.
3893 @var{A}: @code{INTEGER}, @code{REAL}, or @code{COMPLEX}; scalar; INTENT(IN).
3896 Intrinsic groups: @code{vxt}.
3901 Converts @var{A} to @code{REAL(KIND=2)}.
3903 If @var{A} is type @code{COMPLEX}, its real part
3904 is converted (if necessary) to @code{REAL(KIND=2)},
3905 and its imaginary part is disregarded.
3907 Although this intrinsic is not standard Fortran,
3908 it is a popular extension offered by many compilers
3909 that support @code{DOUBLE COMPLEX}, since it offers
3910 the easiest way to extract the real part of a @code{DOUBLE COMPLEX}
3911 value without using the Fortran 90 @code{REAL()} intrinsic
3912 in a way that produces a return value inconsistent with
3913 the way many FORTRAN 77 compilers handle @code{REAL()} of
3914 a @code{DOUBLE COMPLEX} value.
3916 @xref{RealPart Intrinsic}, for information on a GNU Fortran
3917 intrinsic that avoids these areas of confusion.
3919 @xref{Dble Intrinsic}, for information on the standard FORTRAN 77
3920 replacement for @code{DREAL()}.
3922 @xref{REAL() and AIMAG() of Complex}, for more information on
3927 @node DSign Intrinsic
3928 @subsubsection DSign Intrinsic
3929 @cindex DSign intrinsic
3930 @cindex intrinsics, DSign
3934 DSign(@var{A}, @var{B})
3938 DSign: @code{REAL(KIND=2)} function.
3941 @var{A}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3944 @var{B}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3947 Intrinsic groups: (standard FORTRAN 77).
3952 Archaic form of @code{SIGN()} that is specific
3953 to one type for @var{A} and @var{B}.
3954 @xref{Sign Intrinsic}.
3956 @node DSin Intrinsic
3957 @subsubsection DSin Intrinsic
3958 @cindex DSin intrinsic
3959 @cindex intrinsics, DSin
3967 DSin: @code{REAL(KIND=2)} function.
3970 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
3973 Intrinsic groups: (standard FORTRAN 77).
3978 Archaic form of @code{SIN()} that is specific
3979 to one type for @var{X}.
3980 @xref{Sin Intrinsic}.
3984 @node DSinD Intrinsic
3985 @subsubsection DSinD Intrinsic
3986 @cindex DSinD intrinsic
3987 @cindex intrinsics, DSinD
3989 This intrinsic is not yet implemented.
3990 The name is, however, reserved as an intrinsic.
3991 Use @samp{EXTERNAL DSinD} to use this name for an
3996 @node DSinH Intrinsic
3997 @subsubsection DSinH Intrinsic
3998 @cindex DSinH intrinsic
3999 @cindex intrinsics, DSinH
4007 DSinH: @code{REAL(KIND=2)} function.
4010 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
4013 Intrinsic groups: (standard FORTRAN 77).
4018 Archaic form of @code{SINH()} that is specific
4019 to one type for @var{X}.
4020 @xref{SinH Intrinsic}.
4022 @node DSqRt Intrinsic
4023 @subsubsection DSqRt Intrinsic
4024 @cindex DSqRt intrinsic
4025 @cindex intrinsics, DSqRt
4033 DSqRt: @code{REAL(KIND=2)} function.
4036 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
4039 Intrinsic groups: (standard FORTRAN 77).
4044 Archaic form of @code{SQRT()} that is specific
4045 to one type for @var{X}.
4046 @xref{SqRt Intrinsic}.
4048 @node DTan Intrinsic
4049 @subsubsection DTan Intrinsic
4050 @cindex DTan intrinsic
4051 @cindex intrinsics, DTan
4059 DTan: @code{REAL(KIND=2)} function.
4062 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
4065 Intrinsic groups: (standard FORTRAN 77).
4070 Archaic form of @code{TAN()} that is specific
4071 to one type for @var{X}.
4072 @xref{Tan Intrinsic}.
4076 @node DTanD Intrinsic
4077 @subsubsection DTanD Intrinsic
4078 @cindex DTanD intrinsic
4079 @cindex intrinsics, DTanD
4081 This intrinsic is not yet implemented.
4082 The name is, however, reserved as an intrinsic.
4083 Use @samp{EXTERNAL DTanD} to use this name for an
4088 @node DTanH Intrinsic
4089 @subsubsection DTanH Intrinsic
4090 @cindex DTanH intrinsic
4091 @cindex intrinsics, DTanH
4099 DTanH: @code{REAL(KIND=2)} function.
4102 @var{X}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
4105 Intrinsic groups: (standard FORTRAN 77).
4110 Archaic form of @code{TANH()} that is specific
4111 to one type for @var{X}.
4112 @xref{TanH Intrinsic}.
4116 @node DTime Intrinsic (subroutine)
4117 @subsubsection DTime Intrinsic (subroutine)
4118 @cindex DTime intrinsic
4119 @cindex intrinsics, DTime
4123 CALL DTime(@var{TArray}, @var{Result})
4127 @var{TArray}: @code{REAL(KIND=1)}; DIMENSION(2); INTENT(OUT).
4130 @var{Result}: @code{REAL(KIND=1)}; scalar; INTENT(OUT).
4133 Intrinsic groups: @code{unix}.
4138 Initially, return the number of seconds of runtime
4139 since the start of the process's execution
4141 and the user and system components of this in @samp{@var{TArray}(1)}
4142 and @samp{@var{TArray}(2)} respectively.
4143 The value of @var{Result} is equal to @samp{@var{TArray}(1) + @var{TArray}(2)}.
4145 Subsequent invocations of @samp{DTIME()} set values based on accumulations
4146 since the previous invocation.
4148 @cindex wraparound, timings
4149 @cindex limits, timings
4150 On some systems, the underlying timings are represented
4151 using types with sufficiently small limits that overflows
4152 (wraparounds) are possible, such as 32-bit types.
4153 Therefore, the values returned by this intrinsic
4154 might be, or become, negative,
4155 or numerically less than previous values,
4156 during a single run of the compiled program.
4158 Some non-GNU implementations of Fortran provide this intrinsic as
4159 only a function, not as a subroutine.
4161 For information on other intrinsics with the same name:
4162 @xref{DTime Intrinsic (function)}.
4166 @node DTime Intrinsic (function)
4167 @subsubsection DTime Intrinsic (function)
4168 @cindex DTime intrinsic
4169 @cindex intrinsics, DTime
4177 DTime: @code{REAL(KIND=1)} function.
4180 @var{TArray}: @code{REAL(KIND=1)}; DIMENSION(2); INTENT(OUT).
4183 Intrinsic groups: @code{badu77}.
4188 Initially, return the number of seconds of runtime
4189 since the start of the process's execution
4190 as the function value,
4191 and the user and system components of this in @samp{@var{TArray}(1)}
4192 and @samp{@var{TArray}(2)} respectively.
4193 The functions' value is equal to @samp{@var{TArray}(1) + @var{TArray}(2)}.
4195 Subsequent invocations of @samp{DTIME()} return values accumulated since the
4196 previous invocation.
4198 @cindex wraparound, timings
4199 @cindex limits, timings
4200 On some systems, the underlying timings are represented
4201 using types with sufficiently small limits that overflows
4202 (wraparounds) are possible, such as 32-bit types.
4203 Therefore, the values returned by this intrinsic
4204 might be, or become, negative,
4205 or numerically less than previous values,
4206 during a single run of the compiled program.
4208 Due to the side effects performed by this intrinsic, the function
4209 form is not recommended.
4211 For information on other intrinsics with the same name:
4212 @xref{DTime Intrinsic (subroutine)}.
4216 @node EOShift Intrinsic
4217 @subsubsection EOShift Intrinsic
4218 @cindex EOShift intrinsic
4219 @cindex intrinsics, EOShift
4221 This intrinsic is not yet implemented.
4222 The name is, however, reserved as an intrinsic.
4223 Use @samp{EXTERNAL EOShift} to use this name for an
4226 @node Epsilon Intrinsic
4227 @subsubsection Epsilon Intrinsic
4228 @cindex Epsilon intrinsic
4229 @cindex intrinsics, Epsilon
4231 This intrinsic is not yet implemented.
4232 The name is, however, reserved as an intrinsic.
4233 Use @samp{EXTERNAL Epsilon} to use this name for an
4239 @subsubsection ErF Intrinsic
4240 @cindex ErF intrinsic
4241 @cindex intrinsics, ErF
4249 ErF: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{X}.
4252 @var{X}: @code{REAL}; scalar; INTENT(IN).
4255 Intrinsic groups: @code{unix}.
4260 Returns the error function of @var{X}.
4261 See @code{erf(3m)}, which provides the implementation.
4263 @node ErFC Intrinsic
4264 @subsubsection ErFC Intrinsic
4265 @cindex ErFC intrinsic
4266 @cindex intrinsics, ErFC
4274 ErFC: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{X}.
4277 @var{X}: @code{REAL}; scalar; INTENT(IN).
4280 Intrinsic groups: @code{unix}.
4285 Returns the complementary error function of @var{X}:
4286 @samp{ERFC(R) = 1 - ERF(R)} (except that the result might be more
4287 accurate than explicitly evaluating that formulae would give).
4288 See @code{erfc(3m)}, which provides the implementation.
4290 @node ETime Intrinsic (subroutine)
4291 @subsubsection ETime Intrinsic (subroutine)
4292 @cindex ETime intrinsic
4293 @cindex intrinsics, ETime
4297 CALL ETime(@var{TArray}, @var{Result})
4301 @var{TArray}: @code{REAL(KIND=1)}; DIMENSION(2); INTENT(OUT).
4304 @var{Result}: @code{REAL(KIND=1)}; scalar; INTENT(OUT).
4307 Intrinsic groups: @code{unix}.
4312 Return the number of seconds of runtime
4313 since the start of the process's execution
4315 and the user and system components of this in @samp{@var{TArray}(1)}
4316 and @samp{@var{TArray}(2)} respectively.
4317 The value of @var{Result} is equal to @samp{@var{TArray}(1) + @var{TArray}(2)}.
4319 @cindex wraparound, timings
4320 @cindex limits, timings
4321 On some systems, the underlying timings are represented
4322 using types with sufficiently small limits that overflows
4323 (wraparounds) are possible, such as 32-bit types.
4324 Therefore, the values returned by this intrinsic
4325 might be, or become, negative,
4326 or numerically less than previous values,
4327 during a single run of the compiled program.
4329 Some non-GNU implementations of Fortran provide this intrinsic as
4330 only a function, not as a subroutine.
4332 For information on other intrinsics with the same name:
4333 @xref{ETime Intrinsic (function)}.
4335 @node ETime Intrinsic (function)
4336 @subsubsection ETime Intrinsic (function)
4337 @cindex ETime intrinsic
4338 @cindex intrinsics, ETime
4346 ETime: @code{REAL(KIND=1)} function.
4349 @var{TArray}: @code{REAL(KIND=1)}; DIMENSION(2); INTENT(OUT).
4352 Intrinsic groups: @code{unix}.
4357 Return the number of seconds of runtime
4358 since the start of the process's execution
4359 as the function value,
4360 and the user and system components of this in @samp{@var{TArray}(1)}
4361 and @samp{@var{TArray}(2)} respectively.
4362 The functions' value is equal to @samp{@var{TArray}(1) + @var{TArray}(2)}.
4364 @cindex wraparound, timings
4365 @cindex limits, timings
4366 On some systems, the underlying timings are represented
4367 using types with sufficiently small limits that overflows
4368 (wraparounds) are possible, such as 32-bit types.
4369 Therefore, the values returned by this intrinsic
4370 might be, or become, negative,
4371 or numerically less than previous values,
4372 during a single run of the compiled program.
4374 For information on other intrinsics with the same name:
4375 @xref{ETime Intrinsic (subroutine)}.
4377 @node Exit Intrinsic
4378 @subsubsection Exit Intrinsic
4379 @cindex Exit intrinsic
4380 @cindex intrinsics, Exit
4384 CALL Exit(@var{Status})
4388 @var{Status}: @code{INTEGER}; OPTIONAL; scalar; INTENT(IN).
4391 Intrinsic groups: @code{unix}.
4396 Exit the program with status @var{Status} after closing open Fortran
4397 I/O units and otherwise behaving as @code{exit(2)}.
4398 If @var{Status} is omitted the canonical `success' value
4399 will be returned to the system.
4404 @subsubsection Exp Intrinsic
4405 @cindex Exp intrinsic
4406 @cindex intrinsics, Exp
4414 Exp: @code{REAL} or @code{COMPLEX} function, the exact type being that of argument @var{X}.
4417 @var{X}: @code{REAL} or @code{COMPLEX}; scalar; INTENT(IN).
4420 Intrinsic groups: (standard FORTRAN 77).
4425 Returns @samp{@var{e}**@var{X}}, where
4426 @var{e} is approximately 2.7182818.
4428 @xref{Log Intrinsic}, for the inverse of this function.
4432 @node Exponent Intrinsic
4433 @subsubsection Exponent Intrinsic
4434 @cindex Exponent intrinsic
4435 @cindex intrinsics, Exponent
4437 This intrinsic is not yet implemented.
4438 The name is, however, reserved as an intrinsic.
4439 Use @samp{EXTERNAL Exponent} to use this name for an
4444 @node FDate Intrinsic (subroutine)
4445 @subsubsection FDate Intrinsic (subroutine)
4446 @cindex FDate intrinsic
4447 @cindex intrinsics, FDate
4451 CALL FDate(@var{Date})
4455 @var{Date}: @code{CHARACTER}; scalar; INTENT(OUT).
4458 Intrinsic groups: @code{unix}.
4463 Returns the current date (using the same format as @code{CTIME()})
4469 CALL CTIME(@var{Date}, TIME8())
4472 @cindex Y10K compliance
4473 @cindex Year 10000 compliance
4474 @cindex wraparound, Y10K
4475 @cindex limits, Y10K
4476 Programs making use of this intrinsic
4477 might not be Year 10000 (Y10K) compliant.
4478 For example, the date might appear,
4479 to such programs, to wrap around
4480 (change from a larger value to a smaller one)
4481 as of the Year 10000.
4483 @xref{CTime Intrinsic (subroutine)}.
4485 Some non-GNU implementations of Fortran provide this intrinsic as
4486 only a function, not as a subroutine.
4488 For information on other intrinsics with the same name:
4489 @xref{FDate Intrinsic (function)}.
4491 @node FDate Intrinsic (function)
4492 @subsubsection FDate Intrinsic (function)
4493 @cindex FDate intrinsic
4494 @cindex intrinsics, FDate
4502 FDate: @code{CHARACTER*(*)} function.
4505 Intrinsic groups: @code{unix}.
4510 Returns the current date (using the same format as @code{CTIME()}).
4518 @cindex Y10K compliance
4519 @cindex Year 10000 compliance
4520 @cindex wraparound, Y10K
4521 @cindex limits, Y10K
4522 Programs making use of this intrinsic
4523 might not be Year 10000 (Y10K) compliant.
4524 For example, the date might appear,
4525 to such programs, to wrap around
4526 (change from a larger value to a smaller one)
4527 as of the Year 10000.
4529 @xref{CTime Intrinsic (function)}.
4531 For information on other intrinsics with the same name:
4532 @xref{FDate Intrinsic (subroutine)}.
4534 @node FGet Intrinsic (subroutine)
4535 @subsubsection FGet Intrinsic (subroutine)
4536 @cindex FGet intrinsic
4537 @cindex intrinsics, FGet
4541 CALL FGet(@var{C}, @var{Status})
4545 @var{C}: @code{CHARACTER}; scalar; INTENT(OUT).
4548 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
4551 Intrinsic groups: @code{unix}.
4556 Reads a single character into @var{C} in stream mode from unit 5
4557 (by-passing normal formatted output) using @code{getc(3)}.
4559 @var{Status} 0 on success, @minus{}1 on end-of-file, and the error code
4560 from @code{ferror(3)} otherwise.
4562 Stream I/O should not be mixed with normal record-oriented (formatted or
4563 unformatted) I/O on the same unit; the results are unpredictable.
4565 For information on other intrinsics with the same name:
4566 @xref{FGet Intrinsic (function)}.
4570 @node FGet Intrinsic (function)
4571 @subsubsection FGet Intrinsic (function)
4572 @cindex FGet intrinsic
4573 @cindex intrinsics, FGet
4581 FGet: @code{INTEGER(KIND=1)} function.
4584 @var{C}: @code{CHARACTER}; scalar; INTENT(OUT).
4587 Intrinsic groups: @code{badu77}.
4592 Reads a single character into @var{C} in stream mode from unit 5
4593 (by-passing normal formatted input) using @code{getc(3)}.
4595 success, @minus{}1 on end-of-file, and the error code from
4596 @code{ferror(3)} otherwise.
4598 Stream I/O should not be mixed with normal record-oriented (formatted or
4599 unformatted) I/O on the same unit; the results are unpredictable.
4601 For information on other intrinsics with the same name:
4602 @xref{FGet Intrinsic (subroutine)}.
4606 @node FGetC Intrinsic (subroutine)
4607 @subsubsection FGetC Intrinsic (subroutine)
4608 @cindex FGetC intrinsic
4609 @cindex intrinsics, FGetC
4613 CALL FGetC(@var{Unit}, @var{C}, @var{Status})
4617 @var{Unit}: @code{INTEGER}; scalar; INTENT(IN).
4620 @var{C}: @code{CHARACTER}; scalar; INTENT(OUT).
4623 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
4626 Intrinsic groups: @code{unix}.
4631 Reads a single character into @var{C} in stream mode from unit @var{Unit}
4632 (by-passing normal formatted output) using @code{getc(3)}.
4634 @var{Status} 0 on success, @minus{}1 on end-of-file, and the error code from
4635 @code{ferror(3)} otherwise.
4637 Stream I/O should not be mixed with normal record-oriented (formatted or
4638 unformatted) I/O on the same unit; the results are unpredictable.
4640 For information on other intrinsics with the same name:
4641 @xref{FGetC Intrinsic (function)}.
4645 @node FGetC Intrinsic (function)
4646 @subsubsection FGetC Intrinsic (function)
4647 @cindex FGetC intrinsic
4648 @cindex intrinsics, FGetC
4652 FGetC(@var{Unit}, @var{C})
4656 FGetC: @code{INTEGER(KIND=1)} function.
4659 @var{Unit}: @code{INTEGER}; scalar; INTENT(IN).
4662 @var{C}: @code{CHARACTER}; scalar; INTENT(OUT).
4665 Intrinsic groups: @code{badu77}.
4670 Reads a single character into @var{C} in stream mode from unit @var{Unit}
4671 (by-passing normal formatted output) using @code{getc(3)}.
4673 success, @minus{}1 on end-of-file, and the error code from
4674 @code{ferror(3)} otherwise.
4676 Stream I/O should not be mixed with normal record-oriented (formatted or
4677 unformatted) I/O on the same unit; the results are unpredictable.
4679 For information on other intrinsics with the same name:
4680 @xref{FGetC Intrinsic (subroutine)}.
4684 @node Float Intrinsic
4685 @subsubsection Float Intrinsic
4686 @cindex Float intrinsic
4687 @cindex intrinsics, Float
4695 Float: @code{REAL(KIND=1)} function.
4698 @var{A}: @code{INTEGER}; scalar; INTENT(IN).
4701 Intrinsic groups: (standard FORTRAN 77).
4706 Archaic form of @code{REAL()} that is specific
4707 to one type for @var{A}.
4708 @xref{Real Intrinsic}.
4712 @node FloatI Intrinsic
4713 @subsubsection FloatI Intrinsic
4714 @cindex FloatI intrinsic
4715 @cindex intrinsics, FloatI
4717 This intrinsic is not yet implemented.
4718 The name is, however, reserved as an intrinsic.
4719 Use @samp{EXTERNAL FloatI} to use this name for an
4722 @node FloatJ Intrinsic
4723 @subsubsection FloatJ Intrinsic
4724 @cindex FloatJ intrinsic
4725 @cindex intrinsics, FloatJ
4727 This intrinsic is not yet implemented.
4728 The name is, however, reserved as an intrinsic.
4729 Use @samp{EXTERNAL FloatJ} to use this name for an
4734 @node Floor Intrinsic
4735 @subsubsection Floor Intrinsic
4736 @cindex Floor intrinsic
4737 @cindex intrinsics, Floor
4739 This intrinsic is not yet implemented.
4740 The name is, however, reserved as an intrinsic.
4741 Use @samp{EXTERNAL Floor} to use this name for an
4746 @node Flush Intrinsic
4747 @subsubsection Flush Intrinsic
4748 @cindex Flush intrinsic
4749 @cindex intrinsics, Flush
4753 CALL Flush(@var{Unit})
4757 @var{Unit}: @code{INTEGER}; OPTIONAL; scalar; INTENT(IN).
4760 Intrinsic groups: @code{unix}.
4765 Flushes Fortran unit(s) currently open for output.
4766 Without the optional argument, all such units are flushed,
4767 otherwise just the unit specified by @var{Unit}.
4769 Some non-GNU implementations of Fortran provide this intrinsic
4770 as a library procedure that might or might not support the
4771 (optional) @var{Unit} argument.
4773 @node FNum Intrinsic
4774 @subsubsection FNum Intrinsic
4775 @cindex FNum intrinsic
4776 @cindex intrinsics, FNum
4784 FNum: @code{INTEGER(KIND=1)} function.
4787 @var{Unit}: @code{INTEGER}; scalar; INTENT(IN).
4790 Intrinsic groups: @code{unix}.
4795 Returns the Unix file descriptor number corresponding to the open
4796 Fortran I/O unit @var{Unit}.
4797 This could be passed to an interface to C I/O routines.
4799 @node FPut Intrinsic (subroutine)
4800 @subsubsection FPut Intrinsic (subroutine)
4801 @cindex FPut intrinsic
4802 @cindex intrinsics, FPut
4806 CALL FPut(@var{C}, @var{Status})
4810 @var{C}: @code{CHARACTER}; scalar; INTENT(IN).
4813 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
4816 Intrinsic groups: @code{unix}.
4821 Writes the single character @var{C} in stream mode to unit 6
4822 (by-passing normal formatted output) using @code{putc(3)}.
4824 @var{Status} 0 on success, the error code from @code{ferror(3)} otherwise.
4826 Stream I/O should not be mixed with normal record-oriented (formatted or
4827 unformatted) I/O on the same unit; the results are unpredictable.
4829 For information on other intrinsics with the same name:
4830 @xref{FPut Intrinsic (function)}.
4834 @node FPut Intrinsic (function)
4835 @subsubsection FPut Intrinsic (function)
4836 @cindex FPut intrinsic
4837 @cindex intrinsics, FPut
4845 FPut: @code{INTEGER(KIND=1)} function.
4848 @var{C}: @code{CHARACTER}; scalar; INTENT(IN).
4851 Intrinsic groups: @code{badu77}.
4856 Writes the single character @var{C} in stream mode to unit 6
4857 (by-passing normal formatted output) using @code{getc(3)}.
4859 success, the error code from @code{ferror(3)} otherwise.
4861 Stream I/O should not be mixed with normal record-oriented (formatted or
4862 unformatted) I/O on the same unit; the results are unpredictable.
4864 For information on other intrinsics with the same name:
4865 @xref{FPut Intrinsic (subroutine)}.
4869 @node FPutC Intrinsic (subroutine)
4870 @subsubsection FPutC Intrinsic (subroutine)
4871 @cindex FPutC intrinsic
4872 @cindex intrinsics, FPutC
4876 CALL FPutC(@var{Unit}, @var{C}, @var{Status})
4880 @var{Unit}: @code{INTEGER}; scalar; INTENT(IN).
4883 @var{C}: @code{CHARACTER}; scalar; INTENT(IN).
4886 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
4889 Intrinsic groups: @code{unix}.
4894 Writes the single character @var{Unit} in stream mode to unit 6
4895 (by-passing normal formatted output) using @code{putc(3)}.
4897 @var{C} 0 on success, the error code from @code{ferror(3)} otherwise.
4899 Stream I/O should not be mixed with normal record-oriented (formatted or
4900 unformatted) I/O on the same unit; the results are unpredictable.
4902 For information on other intrinsics with the same name:
4903 @xref{FPutC Intrinsic (function)}.
4907 @node FPutC Intrinsic (function)
4908 @subsubsection FPutC Intrinsic (function)
4909 @cindex FPutC intrinsic
4910 @cindex intrinsics, FPutC
4914 FPutC(@var{Unit}, @var{C})
4918 FPutC: @code{INTEGER(KIND=1)} function.
4921 @var{Unit}: @code{INTEGER}; scalar; INTENT(IN).
4924 @var{C}: @code{CHARACTER}; scalar; INTENT(IN).
4927 Intrinsic groups: @code{badu77}.
4932 Writes the single character @var{C} in stream mode to unit @var{Unit}
4933 (by-passing normal formatted output) using @code{putc(3)}.
4935 success, the error code from @code{ferror(3)} otherwise.
4937 Stream I/O should not be mixed with normal record-oriented (formatted or
4938 unformatted) I/O on the same unit; the results are unpredictable.
4940 For information on other intrinsics with the same name:
4941 @xref{FPutC Intrinsic (subroutine)}.
4945 @node Fraction Intrinsic
4946 @subsubsection Fraction Intrinsic
4947 @cindex Fraction intrinsic
4948 @cindex intrinsics, Fraction
4950 This intrinsic is not yet implemented.
4951 The name is, however, reserved as an intrinsic.
4952 Use @samp{EXTERNAL Fraction} to use this name for an
4957 @node FSeek Intrinsic
4958 @subsubsection FSeek Intrinsic
4959 @cindex FSeek intrinsic
4960 @cindex intrinsics, FSeek
4964 CALL FSeek(@var{Unit}, @var{Offset}, @var{Whence}, @var{ErrLab})
4968 @var{Unit}: @code{INTEGER}; scalar; INTENT(IN).
4971 @var{Offset}: @code{INTEGER}; scalar; INTENT(IN).
4974 @var{Whence}: @code{INTEGER}; scalar; INTENT(IN).
4977 @var{ErrLab}: @samp{*@var{label}}, where @var{label} is the label
4978 of an executable statement; OPTIONAL.
4981 Intrinsic groups: @code{unix}.
4986 Attempts to move Fortran unit @var{Unit} to the specified
4987 @var{Offset}: absolute offset if @var{Whence}=0; relative to the
4988 current offset if @var{Whence}=1; relative to the end of the file if
4990 It branches to label @var{ErrLab} if @var{Unit} is
4991 not open or if the call otherwise fails.
4993 @node FStat Intrinsic (subroutine)
4994 @subsubsection FStat Intrinsic (subroutine)
4995 @cindex FStat intrinsic
4996 @cindex intrinsics, FStat
5000 CALL FStat(@var{Unit}, @var{SArray}, @var{Status})
5004 @var{Unit}: @code{INTEGER}; scalar; INTENT(IN).
5007 @var{SArray}: @code{INTEGER(KIND=1)}; DIMENSION(13); INTENT(OUT).
5010 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
5013 Intrinsic groups: @code{unix}.
5018 Obtains data about the file open on Fortran I/O unit @var{Unit} and
5019 places them in the array @var{SArray}.
5020 The values in this array are
5021 extracted from the @code{stat} structure as returned by
5022 @code{fstat(2)} q.v., as follows:
5044 ID of device containing directory entry for file
5045 (0 if not available)
5054 Last modification time
5057 Last file status change time
5060 Preferred I/O block size (-1 if not available)
5063 Number of blocks allocated (-1 if not available)
5066 Not all these elements are relevant on all systems.
5067 If an element is not relevant, it is returned as 0.
5069 If the @var{Status} argument is supplied, it contains
5070 0 on success or a non-zero error code upon return.
5072 Some non-GNU implementations of Fortran provide this intrinsic as
5073 only a function, not as a subroutine, or do not support the
5074 (optional) @var{Status} argument.
5076 For information on other intrinsics with the same name:
5077 @xref{FStat Intrinsic (function)}.
5079 @node FStat Intrinsic (function)
5080 @subsubsection FStat Intrinsic (function)
5081 @cindex FStat intrinsic
5082 @cindex intrinsics, FStat
5086 FStat(@var{Unit}, @var{SArray})
5090 FStat: @code{INTEGER(KIND=1)} function.
5093 @var{Unit}: @code{INTEGER}; scalar; INTENT(IN).
5096 @var{SArray}: @code{INTEGER(KIND=1)}; DIMENSION(13); INTENT(OUT).
5099 Intrinsic groups: @code{unix}.
5104 Obtains data about the file open on Fortran I/O unit @var{Unit} and
5105 places them in the array @var{SArray}.
5106 The values in this array are
5107 extracted from the @code{stat} structure as returned by
5108 @code{fstat(2)} q.v., as follows:
5130 ID of device containing directory entry for file
5131 (0 if not available)
5140 Last modification time
5143 Last file status change time
5146 Preferred I/O block size (-1 if not available)
5149 Number of blocks allocated (-1 if not available)
5152 Not all these elements are relevant on all systems.
5153 If an element is not relevant, it is returned as 0.
5155 Returns 0 on success or a non-zero error code.
5157 For information on other intrinsics with the same name:
5158 @xref{FStat Intrinsic (subroutine)}.
5160 @node FTell Intrinsic (subroutine)
5161 @subsubsection FTell Intrinsic (subroutine)
5162 @cindex FTell intrinsic
5163 @cindex intrinsics, FTell
5167 CALL FTell(@var{Unit}, @var{Offset})
5171 @var{Unit}: @code{INTEGER}; scalar; INTENT(IN).
5174 @var{Offset}: @code{INTEGER(KIND=1)}; scalar; INTENT(OUT).
5177 Intrinsic groups: @code{unix}.
5182 Sets @var{Offset} to the current offset of Fortran unit @var{Unit}
5183 (or to @minus{}1 if @var{Unit} is not open).
5185 Some non-GNU implementations of Fortran provide this intrinsic as
5186 only a function, not as a subroutine.
5188 For information on other intrinsics with the same name:
5189 @xref{FTell Intrinsic (function)}.
5191 @node FTell Intrinsic (function)
5192 @subsubsection FTell Intrinsic (function)
5193 @cindex FTell intrinsic
5194 @cindex intrinsics, FTell
5202 FTell: @code{INTEGER(KIND=1)} function.
5205 @var{Unit}: @code{INTEGER}; scalar; INTENT(IN).
5208 Intrinsic groups: @code{unix}.
5213 Returns the current offset of Fortran unit @var{Unit}
5214 (or @minus{}1 if @var{Unit} is not open).
5216 For information on other intrinsics with the same name:
5217 @xref{FTell Intrinsic (subroutine)}.
5219 @node GError Intrinsic
5220 @subsubsection GError Intrinsic
5221 @cindex GError intrinsic
5222 @cindex intrinsics, GError
5226 CALL GError(@var{Message})
5230 @var{Message}: @code{CHARACTER}; scalar; INTENT(OUT).
5233 Intrinsic groups: @code{unix}.
5238 Returns the system error message corresponding to the last system
5239 error (C @code{errno}).
5241 @node GetArg Intrinsic
5242 @subsubsection GetArg Intrinsic
5243 @cindex GetArg intrinsic
5244 @cindex intrinsics, GetArg
5248 CALL GetArg(@var{Pos}, @var{Value})
5252 @var{Pos}: @code{INTEGER}; scalar; INTENT(IN).
5255 @var{Value}: @code{CHARACTER}; scalar; INTENT(OUT).
5258 Intrinsic groups: @code{unix}.
5263 Sets @var{Value} to the @var{Pos}-th command-line argument (or to all
5264 blanks if there are fewer than @var{Value} command-line arguments);
5265 @code{CALL GETARG(0, @var{value})} sets @var{value} to the name of the
5266 program (on systems that support this feature).
5268 @xref{IArgC Intrinsic}, for information on how to get the number
5271 @node GetCWD Intrinsic (subroutine)
5272 @subsubsection GetCWD Intrinsic (subroutine)
5273 @cindex GetCWD intrinsic
5274 @cindex intrinsics, GetCWD
5278 CALL GetCWD(@var{Name}, @var{Status})
5282 @var{Name}: @code{CHARACTER}; scalar; INTENT(OUT).
5285 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
5288 Intrinsic groups: @code{unix}.
5293 Places the current working directory in @var{Name}.
5294 If the @var{Status} argument is supplied, it contains 0
5295 success or a non-zero error code upon return
5296 (@code{ENOSYS} if the system does not provide @code{getcwd(3)}
5297 or @code{getwd(3)}).
5299 Some non-GNU implementations of Fortran provide this intrinsic as
5300 only a function, not as a subroutine, or do not support the
5301 (optional) @var{Status} argument.
5303 For information on other intrinsics with the same name:
5304 @xref{GetCWD Intrinsic (function)}.
5306 @node GetCWD Intrinsic (function)
5307 @subsubsection GetCWD Intrinsic (function)
5308 @cindex GetCWD intrinsic
5309 @cindex intrinsics, GetCWD
5317 GetCWD: @code{INTEGER(KIND=1)} function.
5320 @var{Name}: @code{CHARACTER}; scalar; INTENT(OUT).
5323 Intrinsic groups: @code{unix}.
5328 Places the current working directory in @var{Name}.
5330 success, otherwise a non-zero error code
5331 (@code{ENOSYS} if the system does not provide @code{getcwd(3)}
5332 or @code{getwd(3)}).
5334 For information on other intrinsics with the same name:
5335 @xref{GetCWD Intrinsic (subroutine)}.
5337 @node GetEnv Intrinsic
5338 @subsubsection GetEnv Intrinsic
5339 @cindex GetEnv intrinsic
5340 @cindex intrinsics, GetEnv
5344 CALL GetEnv(@var{Name}, @var{Value})
5348 @var{Name}: @code{CHARACTER}; scalar; INTENT(IN).
5351 @var{Value}: @code{CHARACTER}; scalar; INTENT(OUT).
5354 Intrinsic groups: @code{unix}.
5359 Sets @var{Value} to the value of environment variable given by the
5360 value of @var{Name} (@code{$name} in shell terms) or to blanks if
5361 @code{$name} has not been set.
5362 A null character (@samp{CHAR(0)}) marks the end of
5363 the name in @var{Name}---otherwise,
5364 trailing blanks in @var{Name} are ignored.
5366 @node GetGId Intrinsic
5367 @subsubsection GetGId Intrinsic
5368 @cindex GetGId intrinsic
5369 @cindex intrinsics, GetGId
5377 GetGId: @code{INTEGER(KIND=1)} function.
5380 Intrinsic groups: @code{unix}.
5385 Returns the group id for the current process.
5387 @node GetLog Intrinsic
5388 @subsubsection GetLog Intrinsic
5389 @cindex GetLog intrinsic
5390 @cindex intrinsics, GetLog
5394 CALL GetLog(@var{Login})
5398 @var{Login}: @code{CHARACTER}; scalar; INTENT(OUT).
5401 Intrinsic groups: @code{unix}.
5406 Returns the login name for the process in @var{Login}.
5408 @emph{Caution:} On some systems, the @code{getlogin(3)}
5409 function, which this intrinsic calls at run time,
5410 is either not implemented or returns a null pointer.
5411 In the latter case, this intrinsic returns blanks
5414 @node GetPId Intrinsic
5415 @subsubsection GetPId Intrinsic
5416 @cindex GetPId intrinsic
5417 @cindex intrinsics, GetPId
5425 GetPId: @code{INTEGER(KIND=1)} function.
5428 Intrinsic groups: @code{unix}.
5433 Returns the process id for the current process.
5435 @node GetUId Intrinsic
5436 @subsubsection GetUId Intrinsic
5437 @cindex GetUId intrinsic
5438 @cindex intrinsics, GetUId
5446 GetUId: @code{INTEGER(KIND=1)} function.
5449 Intrinsic groups: @code{unix}.
5454 Returns the user id for the current process.
5456 @node GMTime Intrinsic
5457 @subsubsection GMTime Intrinsic
5458 @cindex GMTime intrinsic
5459 @cindex intrinsics, GMTime
5463 CALL GMTime(@var{STime}, @var{TArray})
5467 @var{STime}: @code{INTEGER(KIND=1)}; scalar; INTENT(IN).
5470 @var{TArray}: @code{INTEGER(KIND=1)}; DIMENSION(9); INTENT(OUT).
5473 Intrinsic groups: @code{unix}.
5478 Given a system time value @var{STime}, fills @var{TArray} with values
5479 extracted from it appropriate to the GMT time zone using
5482 The array elements are as follows:
5486 Seconds after the minute, range 0--59 or 0--61 to allow for leap
5490 Minutes after the hour, range 0--59
5493 Hours past midnight, range 0--23
5496 Day of month, range 0--31
5499 Number of months since January, range 0--12
5505 Number of days since Sunday, range 0--6
5508 Days since January 1
5511 Daylight savings indicator: positive if daylight savings is in effect,
5512 zero if not, and negative if the information isn't available.
5515 @node HostNm Intrinsic (subroutine)
5516 @subsubsection HostNm Intrinsic (subroutine)
5517 @cindex HostNm intrinsic
5518 @cindex intrinsics, HostNm
5522 CALL HostNm(@var{Name}, @var{Status})
5526 @var{Name}: @code{CHARACTER}; scalar; INTENT(OUT).
5529 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
5532 Intrinsic groups: @code{unix}.
5537 Fills @var{Name} with the system's host name returned by
5538 @code{gethostname(2)}.
5539 If the @var{Status} argument is supplied, it contains
5540 0 on success or a non-zero error code upon return
5541 (@code{ENOSYS} if the system does not provide @code{gethostname(2)}).
5543 Some non-GNU implementations of Fortran provide this intrinsic as
5544 only a function, not as a subroutine, or do not support the
5545 (optional) @var{Status} argument.
5547 On some systems (specifically SCO) it might be necessary to link the
5548 ``socket'' library if you call this routine.
5549 Typically this means adding @samp{-lg2c -lsocket -lm}
5550 to the @code{g77} command line when linking the program.
5552 For information on other intrinsics with the same name:
5553 @xref{HostNm Intrinsic (function)}.
5555 @node HostNm Intrinsic (function)
5556 @subsubsection HostNm Intrinsic (function)
5557 @cindex HostNm intrinsic
5558 @cindex intrinsics, HostNm
5566 HostNm: @code{INTEGER(KIND=1)} function.
5569 @var{Name}: @code{CHARACTER}; scalar; INTENT(OUT).
5572 Intrinsic groups: @code{unix}.
5577 Fills @var{Name} with the system's host name returned by
5578 @code{gethostname(2)}, returning 0 on success or a non-zero error code
5579 (@code{ENOSYS} if the system does not provide @code{gethostname(2)}).
5581 On some systems (specifically SCO) it might be necessary to link the
5582 ``socket'' library if you call this routine.
5583 Typically this means adding @samp{-lg2c -lsocket -lm}
5584 to the @code{g77} command line when linking the program.
5586 For information on other intrinsics with the same name:
5587 @xref{HostNm Intrinsic (subroutine)}.
5591 @node Huge Intrinsic
5592 @subsubsection Huge Intrinsic
5593 @cindex Huge intrinsic
5594 @cindex intrinsics, Huge
5596 This intrinsic is not yet implemented.
5597 The name is, however, reserved as an intrinsic.
5598 Use @samp{EXTERNAL Huge} to use this name for an
5603 @node IAbs Intrinsic
5604 @subsubsection IAbs Intrinsic
5605 @cindex IAbs intrinsic
5606 @cindex intrinsics, IAbs
5614 IAbs: @code{INTEGER(KIND=1)} function.
5617 @var{A}: @code{INTEGER(KIND=1)}; scalar; INTENT(IN).
5620 Intrinsic groups: (standard FORTRAN 77).
5625 Archaic form of @code{ABS()} that is specific
5626 to one type for @var{A}.
5627 @xref{Abs Intrinsic}.
5631 @node IAChar Intrinsic
5632 @subsubsection IAChar Intrinsic
5633 @cindex IAChar intrinsic
5634 @cindex intrinsics, IAChar
5642 IAChar: @code{INTEGER(KIND=1)} function.
5645 @var{C}: @code{CHARACTER}; scalar; INTENT(IN).
5648 Intrinsic groups: @code{f2c}, @code{f90}.
5653 Returns the code for the ASCII character in the
5654 first character position of @var{C}.
5656 @xref{AChar Intrinsic}, for the inverse of this function.
5658 @xref{IChar Intrinsic}, for the function corresponding
5659 to the system's native character set.
5663 @node IAnd Intrinsic
5664 @subsubsection IAnd Intrinsic
5665 @cindex IAnd intrinsic
5666 @cindex intrinsics, IAnd
5670 IAnd(@var{I}, @var{J})
5674 IAnd: @code{INTEGER} function, the exact type being the result of cross-promoting the
5675 types of all the arguments.
5678 @var{I}: @code{INTEGER}; scalar; INTENT(IN).
5681 @var{J}: @code{INTEGER}; scalar; INTENT(IN).
5684 Intrinsic groups: @code{mil}, @code{f90}, @code{vxt}.
5689 Returns value resulting from boolean AND of
5690 pair of bits in each of @var{I} and @var{J}.
5694 @node IArgC Intrinsic
5695 @subsubsection IArgC Intrinsic
5696 @cindex IArgC intrinsic
5697 @cindex intrinsics, IArgC
5705 IArgC: @code{INTEGER(KIND=1)} function.
5708 Intrinsic groups: @code{unix}.
5713 Returns the number of command-line arguments.
5715 This count does not include the specification of the program
5720 @node IBClr Intrinsic
5721 @subsubsection IBClr Intrinsic
5722 @cindex IBClr intrinsic
5723 @cindex intrinsics, IBClr
5727 IBClr(@var{I}, @var{Pos})
5731 IBClr: @code{INTEGER} function, the @samp{KIND=} value of the type being that of argument @var{I}.
5734 @var{I}: @code{INTEGER}; scalar; INTENT(IN).
5737 @var{Pos}: @code{INTEGER}; scalar; INTENT(IN).
5740 Intrinsic groups: @code{mil}, @code{f90}, @code{vxt}.
5745 Returns the value of @var{I} with bit @var{Pos} cleared (set to
5747 @xref{BTest Intrinsic}, for information on bit positions.
5749 @node IBits Intrinsic
5750 @subsubsection IBits Intrinsic
5751 @cindex IBits intrinsic
5752 @cindex intrinsics, IBits
5756 IBits(@var{I}, @var{Pos}, @var{Len})
5760 IBits: @code{INTEGER} function, the @samp{KIND=} value of the type being that of argument @var{I}.
5763 @var{I}: @code{INTEGER}; scalar; INTENT(IN).
5766 @var{Pos}: @code{INTEGER}; scalar; INTENT(IN).
5769 @var{Len}: @code{INTEGER}; scalar; INTENT(IN).
5772 Intrinsic groups: @code{mil}, @code{f90}, @code{vxt}.
5777 Extracts a subfield of length @var{Len} from @var{I}, starting from
5778 bit position @var{Pos} and extending left for @var{Len} bits.
5779 The result is right-justified and the remaining bits are zeroed.
5781 of @samp{@var{Pos}+@var{Len}} must be less than or equal to the value
5782 @samp{BIT_SIZE(@var{I})}.
5783 @xref{Bit_Size Intrinsic}.
5785 @node IBSet Intrinsic
5786 @subsubsection IBSet Intrinsic
5787 @cindex IBSet intrinsic
5788 @cindex intrinsics, IBSet
5792 IBSet(@var{I}, @var{Pos})
5796 IBSet: @code{INTEGER} function, the @samp{KIND=} value of the type being that of argument @var{I}.
5799 @var{I}: @code{INTEGER}; scalar; INTENT(IN).
5802 @var{Pos}: @code{INTEGER}; scalar; INTENT(IN).
5805 Intrinsic groups: @code{mil}, @code{f90}, @code{vxt}.
5810 Returns the value of @var{I} with bit @var{Pos} set (to one).
5811 @xref{BTest Intrinsic}, for information on bit positions.
5815 @node IChar Intrinsic
5816 @subsubsection IChar Intrinsic
5817 @cindex IChar intrinsic
5818 @cindex intrinsics, IChar
5826 IChar: @code{INTEGER(KIND=1)} function.
5829 @var{C}: @code{CHARACTER}; scalar; INTENT(IN).
5832 Intrinsic groups: (standard FORTRAN 77).
5837 Returns the code for the character in the
5838 first character position of @var{C}.
5840 Because the system's native character set is used,
5841 the correspondence between character and their codes
5842 is not necessarily the same between GNU Fortran
5845 Note that no intrinsic exists to convert a printable
5846 character string to a numerical value.
5847 For example, there is no intrinsic that, given
5848 the @code{CHARACTER} value @samp{'154'}, returns an
5849 @code{INTEGER} or @code{REAL} value with the value @samp{154}.
5851 Instead, you can use internal-file I/O to do this kind
5859 READ (STRING, '(I10)'), VALUE
5864 The above program, when run, prints:
5870 @xref{Char Intrinsic}, for the inverse of the @code{ICHAR} function.
5872 @xref{IAChar Intrinsic}, for the function corresponding
5873 to the ASCII character set.
5877 @node IDate Intrinsic (UNIX)
5878 @subsubsection IDate Intrinsic (UNIX)
5879 @cindex IDate intrinsic
5880 @cindex intrinsics, IDate
5884 CALL IDate(@var{TArray})
5888 @var{TArray}: @code{INTEGER(KIND=1)}; DIMENSION(3); INTENT(OUT).
5891 Intrinsic groups: @code{unix}.
5896 Fills @var{TArray} with the numerical values at the current local time
5897 of day, month (in the range 1--12), and year in elements 1, 2, and 3,
5899 The year has four significant digits.
5901 @cindex Y10K compliance
5902 @cindex Year 10000 compliance
5903 @cindex wraparound, Y10K
5904 @cindex limits, Y10K
5905 Programs making use of this intrinsic
5906 might not be Year 10000 (Y10K) compliant.
5907 For example, the date might appear,
5908 to such programs, to wrap around
5909 (change from a larger value to a smaller one)
5910 as of the Year 10000.
5912 For information on other intrinsics with the same name:
5913 @xref{IDate Intrinsic (VXT)}.
5917 @node IDate Intrinsic (VXT)
5918 @subsubsection IDate Intrinsic (VXT)
5919 @cindex IDate intrinsic
5920 @cindex intrinsics, IDate
5924 CALL IDate(@var{M}, @var{D}, @var{Y})
5928 @var{M}: @code{INTEGER(KIND=1)}; scalar; INTENT(OUT).
5931 @var{D}: @code{INTEGER(KIND=1)}; scalar; INTENT(OUT).
5934 @var{Y}: @code{INTEGER(KIND=1)}; scalar; INTENT(OUT).
5937 Intrinsic groups: @code{vxt}.
5942 Returns the numerical values of the current local time.
5943 The month (in the range 1--12) is returned in @var{M},
5944 the day (in the range 1--7) in @var{D},
5945 and the year in @var{Y} (in the range 0--99).
5947 @cindex Y2K compliance
5948 @cindex Year 2000 compliance
5949 @cindex wraparound, Y2K
5951 This intrinsic is not recommended, due to the year 2000 approaching.
5952 Therefore, programs making use of this intrinsic
5953 might not be Year 2000 (Y2K) compliant.
5954 For example, the date might appear,
5955 to such programs, to wrap around
5956 (change from a larger value to a smaller one)
5957 as of the Year 2000.
5959 @xref{IDate Intrinsic (UNIX)}, for information on obtaining more digits
5960 for the current date.
5962 For information on other intrinsics with the same name:
5963 @xref{IDate Intrinsic (UNIX)}.
5967 @node IDiM Intrinsic
5968 @subsubsection IDiM Intrinsic
5969 @cindex IDiM intrinsic
5970 @cindex intrinsics, IDiM
5974 IDiM(@var{X}, @var{Y})
5978 IDiM: @code{INTEGER(KIND=1)} function.
5981 @var{X}: @code{INTEGER(KIND=1)}; scalar; INTENT(IN).
5984 @var{Y}: @code{INTEGER(KIND=1)}; scalar; INTENT(IN).
5987 Intrinsic groups: (standard FORTRAN 77).
5992 Archaic form of @code{DIM()} that is specific
5993 to one type for @var{X} and @var{Y}.
5994 @xref{DiM Intrinsic}.
5996 @node IDInt Intrinsic
5997 @subsubsection IDInt Intrinsic
5998 @cindex IDInt intrinsic
5999 @cindex intrinsics, IDInt
6007 IDInt: @code{INTEGER(KIND=1)} function.
6010 @var{A}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
6013 Intrinsic groups: (standard FORTRAN 77).
6018 Archaic form of @code{INT()} that is specific
6019 to one type for @var{A}.
6020 @xref{Int Intrinsic}.
6022 @node IDNInt Intrinsic
6023 @subsubsection IDNInt Intrinsic
6024 @cindex IDNInt intrinsic
6025 @cindex intrinsics, IDNInt
6033 IDNInt: @code{INTEGER(KIND=1)} function.
6036 @var{A}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
6039 Intrinsic groups: (standard FORTRAN 77).
6044 Archaic form of @code{NINT()} that is specific
6045 to one type for @var{A}.
6046 @xref{NInt Intrinsic}.
6050 @node IEOr Intrinsic
6051 @subsubsection IEOr Intrinsic
6052 @cindex IEOr intrinsic
6053 @cindex intrinsics, IEOr
6057 IEOr(@var{I}, @var{J})
6061 IEOr: @code{INTEGER} function, the exact type being the result of cross-promoting the
6062 types of all the arguments.
6065 @var{I}: @code{INTEGER}; scalar; INTENT(IN).
6068 @var{J}: @code{INTEGER}; scalar; INTENT(IN).
6071 Intrinsic groups: @code{mil}, @code{f90}, @code{vxt}.
6076 Returns value resulting from boolean exclusive-OR of
6077 pair of bits in each of @var{I} and @var{J}.
6081 @node IErrNo Intrinsic
6082 @subsubsection IErrNo Intrinsic
6083 @cindex IErrNo intrinsic
6084 @cindex intrinsics, IErrNo
6092 IErrNo: @code{INTEGER(KIND=1)} function.
6095 Intrinsic groups: @code{unix}.
6100 Returns the last system error number (corresponding to the C
6105 @node IFix Intrinsic
6106 @subsubsection IFix Intrinsic
6107 @cindex IFix intrinsic
6108 @cindex intrinsics, IFix
6116 IFix: @code{INTEGER(KIND=1)} function.
6119 @var{A}: @code{REAL(KIND=1)}; scalar; INTENT(IN).
6122 Intrinsic groups: (standard FORTRAN 77).
6127 Archaic form of @code{INT()} that is specific
6128 to one type for @var{A}.
6129 @xref{Int Intrinsic}.
6133 @node IIAbs Intrinsic
6134 @subsubsection IIAbs Intrinsic
6135 @cindex IIAbs intrinsic
6136 @cindex intrinsics, IIAbs
6138 This intrinsic is not yet implemented.
6139 The name is, however, reserved as an intrinsic.
6140 Use @samp{EXTERNAL IIAbs} to use this name for an
6143 @node IIAnd Intrinsic
6144 @subsubsection IIAnd Intrinsic
6145 @cindex IIAnd intrinsic
6146 @cindex intrinsics, IIAnd
6148 This intrinsic is not yet implemented.
6149 The name is, however, reserved as an intrinsic.
6150 Use @samp{EXTERNAL IIAnd} to use this name for an
6153 @node IIBClr Intrinsic
6154 @subsubsection IIBClr Intrinsic
6155 @cindex IIBClr intrinsic
6156 @cindex intrinsics, IIBClr
6158 This intrinsic is not yet implemented.
6159 The name is, however, reserved as an intrinsic.
6160 Use @samp{EXTERNAL IIBClr} to use this name for an
6163 @node IIBits Intrinsic
6164 @subsubsection IIBits Intrinsic
6165 @cindex IIBits intrinsic
6166 @cindex intrinsics, IIBits
6168 This intrinsic is not yet implemented.
6169 The name is, however, reserved as an intrinsic.
6170 Use @samp{EXTERNAL IIBits} to use this name for an
6173 @node IIBSet Intrinsic
6174 @subsubsection IIBSet Intrinsic
6175 @cindex IIBSet intrinsic
6176 @cindex intrinsics, IIBSet
6178 This intrinsic is not yet implemented.
6179 The name is, however, reserved as an intrinsic.
6180 Use @samp{EXTERNAL IIBSet} to use this name for an
6183 @node IIDiM Intrinsic
6184 @subsubsection IIDiM Intrinsic
6185 @cindex IIDiM intrinsic
6186 @cindex intrinsics, IIDiM
6188 This intrinsic is not yet implemented.
6189 The name is, however, reserved as an intrinsic.
6190 Use @samp{EXTERNAL IIDiM} to use this name for an
6193 @node IIDInt Intrinsic
6194 @subsubsection IIDInt Intrinsic
6195 @cindex IIDInt intrinsic
6196 @cindex intrinsics, IIDInt
6198 This intrinsic is not yet implemented.
6199 The name is, however, reserved as an intrinsic.
6200 Use @samp{EXTERNAL IIDInt} to use this name for an
6203 @node IIDNnt Intrinsic
6204 @subsubsection IIDNnt Intrinsic
6205 @cindex IIDNnt intrinsic
6206 @cindex intrinsics, IIDNnt
6208 This intrinsic is not yet implemented.
6209 The name is, however, reserved as an intrinsic.
6210 Use @samp{EXTERNAL IIDNnt} to use this name for an
6213 @node IIEOr Intrinsic
6214 @subsubsection IIEOr Intrinsic
6215 @cindex IIEOr intrinsic
6216 @cindex intrinsics, IIEOr
6218 This intrinsic is not yet implemented.
6219 The name is, however, reserved as an intrinsic.
6220 Use @samp{EXTERNAL IIEOr} to use this name for an
6223 @node IIFix Intrinsic
6224 @subsubsection IIFix Intrinsic
6225 @cindex IIFix intrinsic
6226 @cindex intrinsics, IIFix
6228 This intrinsic is not yet implemented.
6229 The name is, however, reserved as an intrinsic.
6230 Use @samp{EXTERNAL IIFix} to use this name for an
6233 @node IInt Intrinsic
6234 @subsubsection IInt Intrinsic
6235 @cindex IInt intrinsic
6236 @cindex intrinsics, IInt
6238 This intrinsic is not yet implemented.
6239 The name is, however, reserved as an intrinsic.
6240 Use @samp{EXTERNAL IInt} to use this name for an
6243 @node IIOr Intrinsic
6244 @subsubsection IIOr Intrinsic
6245 @cindex IIOr intrinsic
6246 @cindex intrinsics, IIOr
6248 This intrinsic is not yet implemented.
6249 The name is, however, reserved as an intrinsic.
6250 Use @samp{EXTERNAL IIOr} to use this name for an
6253 @node IIQint Intrinsic
6254 @subsubsection IIQint Intrinsic
6255 @cindex IIQint intrinsic
6256 @cindex intrinsics, IIQint
6258 This intrinsic is not yet implemented.
6259 The name is, however, reserved as an intrinsic.
6260 Use @samp{EXTERNAL IIQint} to use this name for an
6263 @node IIQNnt Intrinsic
6264 @subsubsection IIQNnt Intrinsic
6265 @cindex IIQNnt intrinsic
6266 @cindex intrinsics, IIQNnt
6268 This intrinsic is not yet implemented.
6269 The name is, however, reserved as an intrinsic.
6270 Use @samp{EXTERNAL IIQNnt} to use this name for an
6273 @node IIShftC Intrinsic
6274 @subsubsection IIShftC Intrinsic
6275 @cindex IIShftC intrinsic
6276 @cindex intrinsics, IIShftC
6278 This intrinsic is not yet implemented.
6279 The name is, however, reserved as an intrinsic.
6280 Use @samp{EXTERNAL IIShftC} to use this name for an
6283 @node IISign Intrinsic
6284 @subsubsection IISign Intrinsic
6285 @cindex IISign intrinsic
6286 @cindex intrinsics, IISign
6288 This intrinsic is not yet implemented.
6289 The name is, however, reserved as an intrinsic.
6290 Use @samp{EXTERNAL IISign} to use this name for an
6295 @node Imag Intrinsic
6296 @subsubsection Imag Intrinsic
6297 @cindex Imag intrinsic
6298 @cindex intrinsics, Imag
6306 Imag: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{Z}.
6309 @var{Z}: @code{COMPLEX}; scalar; INTENT(IN).
6312 Intrinsic groups: @code{f2c}.
6317 The imaginary part of @var{Z} is returned, without conversion.
6319 @emph{Note:} The way to do this in standard Fortran 90
6320 is @samp{AIMAG(@var{Z})}.
6321 However, when, for example, @var{Z} is @code{DOUBLE COMPLEX},
6322 @samp{AIMAG(@var{Z})} means something different for some compilers
6323 that are not true Fortran 90 compilers but offer some
6324 extensions standardized by Fortran 90 (such as the
6325 @code{DOUBLE COMPLEX} type, also known as @code{COMPLEX(KIND=2)}).
6327 The advantage of @code{IMAG()} is that, while not necessarily
6328 more or less portable than @code{AIMAG()}, it is more likely to
6329 cause a compiler that doesn't support it to produce a diagnostic
6330 than generate incorrect code.
6332 @xref{REAL() and AIMAG() of Complex}, for more information.
6336 @node ImagPart Intrinsic
6337 @subsubsection ImagPart Intrinsic
6338 @cindex ImagPart intrinsic
6339 @cindex intrinsics, ImagPart
6347 ImagPart: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{Z}.
6350 @var{Z}: @code{COMPLEX}; scalar; INTENT(IN).
6353 Intrinsic groups: @code{gnu}.
6358 The imaginary part of @var{Z} is returned, without conversion.
6360 @emph{Note:} The way to do this in standard Fortran 90
6361 is @samp{AIMAG(@var{Z})}.
6362 However, when, for example, @var{Z} is @code{DOUBLE COMPLEX},
6363 @samp{AIMAG(@var{Z})} means something different for some compilers
6364 that are not true Fortran 90 compilers but offer some
6365 extensions standardized by Fortran 90 (such as the
6366 @code{DOUBLE COMPLEX} type, also known as @code{COMPLEX(KIND=2)}).
6368 The advantage of @code{IMAGPART()} is that, while not necessarily
6369 more or less portable than @code{AIMAG()}, it is more likely to
6370 cause a compiler that doesn't support it to produce a diagnostic
6371 than generate incorrect code.
6373 @xref{REAL() and AIMAG() of Complex}, for more information.
6377 @node IMax0 Intrinsic
6378 @subsubsection IMax0 Intrinsic
6379 @cindex IMax0 intrinsic
6380 @cindex intrinsics, IMax0
6382 This intrinsic is not yet implemented.
6383 The name is, however, reserved as an intrinsic.
6384 Use @samp{EXTERNAL IMax0} to use this name for an
6387 @node IMax1 Intrinsic
6388 @subsubsection IMax1 Intrinsic
6389 @cindex IMax1 intrinsic
6390 @cindex intrinsics, IMax1
6392 This intrinsic is not yet implemented.
6393 The name is, however, reserved as an intrinsic.
6394 Use @samp{EXTERNAL IMax1} to use this name for an
6397 @node IMin0 Intrinsic
6398 @subsubsection IMin0 Intrinsic
6399 @cindex IMin0 intrinsic
6400 @cindex intrinsics, IMin0
6402 This intrinsic is not yet implemented.
6403 The name is, however, reserved as an intrinsic.
6404 Use @samp{EXTERNAL IMin0} to use this name for an
6407 @node IMin1 Intrinsic
6408 @subsubsection IMin1 Intrinsic
6409 @cindex IMin1 intrinsic
6410 @cindex intrinsics, IMin1
6412 This intrinsic is not yet implemented.
6413 The name is, however, reserved as an intrinsic.
6414 Use @samp{EXTERNAL IMin1} to use this name for an
6417 @node IMod Intrinsic
6418 @subsubsection IMod Intrinsic
6419 @cindex IMod intrinsic
6420 @cindex intrinsics, IMod
6422 This intrinsic is not yet implemented.
6423 The name is, however, reserved as an intrinsic.
6424 Use @samp{EXTERNAL IMod} to use this name for an
6429 @node Index Intrinsic
6430 @subsubsection Index Intrinsic
6431 @cindex Index intrinsic
6432 @cindex intrinsics, Index
6436 Index(@var{String}, @var{Substring})
6440 Index: @code{INTEGER(KIND=1)} function.
6443 @var{String}: @code{CHARACTER}; scalar; INTENT(IN).
6446 @var{Substring}: @code{CHARACTER}; scalar; INTENT(IN).
6449 Intrinsic groups: (standard FORTRAN 77).
6454 Returns the position of the start of the first occurrence of string
6455 @var{Substring} as a substring in @var{String}, counting from one.
6456 If @var{Substring} doesn't occur in @var{String}, zero is returned.
6460 @node INInt Intrinsic
6461 @subsubsection INInt Intrinsic
6462 @cindex INInt intrinsic
6463 @cindex intrinsics, INInt
6465 This intrinsic is not yet implemented.
6466 The name is, however, reserved as an intrinsic.
6467 Use @samp{EXTERNAL INInt} to use this name for an
6470 @node INot Intrinsic
6471 @subsubsection INot Intrinsic
6472 @cindex INot intrinsic
6473 @cindex intrinsics, INot
6475 This intrinsic is not yet implemented.
6476 The name is, however, reserved as an intrinsic.
6477 Use @samp{EXTERNAL INot} to use this name for an
6483 @subsubsection Int Intrinsic
6484 @cindex Int intrinsic
6485 @cindex intrinsics, Int
6493 Int: @code{INTEGER(KIND=1)} function.
6496 @var{A}: @code{INTEGER}, @code{REAL}, or @code{COMPLEX}; scalar; INTENT(IN).
6499 Intrinsic groups: (standard FORTRAN 77).
6504 Returns @var{A} with the fractional portion of its
6505 magnitude truncated and its sign preserved, converted
6506 to type @code{INTEGER(KIND=1)}.
6508 If @var{A} is type @code{COMPLEX}, its real part is
6509 truncated and converted, and its imaginary part is disregarded.
6511 @xref{NInt Intrinsic}, for how to convert, rounded to nearest
6514 @xref{AInt Intrinsic}, for how to truncate to whole number
6519 @node Int2 Intrinsic
6520 @subsubsection Int2 Intrinsic
6521 @cindex Int2 intrinsic
6522 @cindex intrinsics, Int2
6530 Int2: @code{INTEGER(KIND=6)} function.
6533 @var{A}: @code{INTEGER}, @code{REAL}, or @code{COMPLEX}; scalar; INTENT(IN).
6536 Intrinsic groups: @code{gnu}.
6541 Returns @var{A} with the fractional portion of its
6542 magnitude truncated and its sign preserved, converted
6543 to type @code{INTEGER(KIND=6)}.
6545 If @var{A} is type @code{COMPLEX}, its real part
6546 is truncated and converted, and its imaginary part is disgregarded.
6548 @xref{Int Intrinsic}.
6550 The precise meaning of this intrinsic might change
6551 in a future version of the GNU Fortran language,
6552 as more is learned about how it is used.
6554 @node Int8 Intrinsic
6555 @subsubsection Int8 Intrinsic
6556 @cindex Int8 intrinsic
6557 @cindex intrinsics, Int8
6565 Int8: @code{INTEGER(KIND=2)} function.
6568 @var{A}: @code{INTEGER}, @code{REAL}, or @code{COMPLEX}; scalar; INTENT(IN).
6571 Intrinsic groups: @code{gnu}.
6576 Returns @var{A} with the fractional portion of its
6577 magnitude truncated and its sign preserved, converted
6578 to type @code{INTEGER(KIND=2)}.
6580 If @var{A} is type @code{COMPLEX}, its real part
6581 is truncated and converted, and its imaginary part is disgregarded.
6583 @xref{Int Intrinsic}.
6585 The precise meaning of this intrinsic might change
6586 in a future version of the GNU Fortran language,
6587 as more is learned about how it is used.
6592 @subsubsection IOr Intrinsic
6593 @cindex IOr intrinsic
6594 @cindex intrinsics, IOr
6598 IOr(@var{I}, @var{J})
6602 IOr: @code{INTEGER} function, the exact type being the result of cross-promoting the
6603 types of all the arguments.
6606 @var{I}: @code{INTEGER}; scalar; INTENT(IN).
6609 @var{J}: @code{INTEGER}; scalar; INTENT(IN).
6612 Intrinsic groups: @code{mil}, @code{f90}, @code{vxt}.
6617 Returns value resulting from boolean OR of
6618 pair of bits in each of @var{I} and @var{J}.
6622 @node IRand Intrinsic
6623 @subsubsection IRand Intrinsic
6624 @cindex IRand intrinsic
6625 @cindex intrinsics, IRand
6633 IRand: @code{INTEGER(KIND=1)} function.
6636 @var{Flag}: @code{INTEGER}; OPTIONAL; scalar; INTENT(IN).
6639 Intrinsic groups: @code{unix}.
6644 Returns a uniform quasi-random number up to a system-dependent limit.
6645 If @var{Flag} is 0, the next number in sequence is returned; if
6646 @var{Flag} is 1, the generator is restarted by calling the UNIX function
6647 @samp{srand(0)}; if @var{Flag} has any other value,
6648 it is used as a new seed with @code{srand()}.
6650 @xref{SRand Intrinsic}.
6652 @emph{Note:} As typically implemented (by the routine of the same
6653 name in the C library), this random number generator is a very poor
6654 one, though the BSD and GNU libraries provide a much better
6655 implementation than the `traditional' one.
6656 On a different system you almost certainly want to use something better.
6658 @node IsaTty Intrinsic
6659 @subsubsection IsaTty Intrinsic
6660 @cindex IsaTty intrinsic
6661 @cindex intrinsics, IsaTty
6669 IsaTty: @code{LOGICAL(KIND=1)} function.
6672 @var{Unit}: @code{INTEGER}; scalar; INTENT(IN).
6675 Intrinsic groups: @code{unix}.
6680 Returns @code{.TRUE.} if and only if the Fortran I/O unit
6681 specified by @var{Unit} is connected
6682 to a terminal device.
6683 See @code{isatty(3)}.
6687 @node IShft Intrinsic
6688 @subsubsection IShft Intrinsic
6689 @cindex IShft intrinsic
6690 @cindex intrinsics, IShft
6694 IShft(@var{I}, @var{Shift})
6698 IShft: @code{INTEGER} function, the @samp{KIND=} value of the type being that of argument @var{I}.
6701 @var{I}: @code{INTEGER}; scalar; INTENT(IN).
6704 @var{Shift}: @code{INTEGER}; scalar; INTENT(IN).
6707 Intrinsic groups: @code{mil}, @code{f90}, @code{vxt}.
6712 All bits representing @var{I} are shifted @var{Shift} places.
6713 @samp{@var{Shift}.GT.0} indicates a left shift, @samp{@var{Shift}.EQ.0}
6714 indicates no shift and @samp{@var{Shift}.LT.0} indicates a right shift.
6715 If the absolute value of the shift count is greater than
6716 @samp{BIT_SIZE(@var{I})}, the result is undefined.
6717 Bits shifted out from the left end or the right end are lost.
6718 Zeros are shifted in from the opposite end.
6720 @xref{IShftC Intrinsic}, for the circular-shift equivalent.
6722 @node IShftC Intrinsic
6723 @subsubsection IShftC Intrinsic
6724 @cindex IShftC intrinsic
6725 @cindex intrinsics, IShftC
6729 IShftC(@var{I}, @var{Shift}, @var{Size})
6733 IShftC: @code{INTEGER} function, the @samp{KIND=} value of the type being that of argument @var{I}.
6736 @var{I}: @code{INTEGER}; scalar; INTENT(IN).
6739 @var{Shift}: @code{INTEGER}; scalar; INTENT(IN).
6742 @var{Size}: @code{INTEGER}; scalar; INTENT(IN).
6745 Intrinsic groups: @code{mil}, @code{f90}, @code{vxt}.
6750 The rightmost @var{Size} bits of the argument @var{I}
6751 are shifted circularly @var{Shift}
6752 places, i.e.@: the bits shifted out of one end are shifted into
6755 The unshifted bits of the result are the same as
6756 the unshifted bits of @var{I}.
6757 The absolute value of the argument @var{Shift}
6758 must be less than or equal to @var{Size}.
6759 The value of @var{Size} must be greater than or equal to one and less than
6760 or equal to @samp{BIT_SIZE(@var{I})}.
6762 @xref{IShft Intrinsic}, for the logical shift equivalent.
6766 @node ISign Intrinsic
6767 @subsubsection ISign Intrinsic
6768 @cindex ISign intrinsic
6769 @cindex intrinsics, ISign
6773 ISign(@var{A}, @var{B})
6777 ISign: @code{INTEGER(KIND=1)} function.
6780 @var{A}: @code{INTEGER(KIND=1)}; scalar; INTENT(IN).
6783 @var{B}: @code{INTEGER(KIND=1)}; scalar; INTENT(IN).
6786 Intrinsic groups: (standard FORTRAN 77).
6791 Archaic form of @code{SIGN()} that is specific
6792 to one type for @var{A} and @var{B}.
6793 @xref{Sign Intrinsic}.
6797 @node ITime Intrinsic
6798 @subsubsection ITime Intrinsic
6799 @cindex ITime intrinsic
6800 @cindex intrinsics, ITime
6804 CALL ITime(@var{TArray})
6808 @var{TArray}: @code{INTEGER(KIND=1)}; DIMENSION(3); INTENT(OUT).
6811 Intrinsic groups: @code{unix}.
6816 Returns the current local time hour, minutes, and seconds in elements
6817 1, 2, and 3 of @var{TArray}, respectively.
6821 @node IZExt Intrinsic
6822 @subsubsection IZExt Intrinsic
6823 @cindex IZExt intrinsic
6824 @cindex intrinsics, IZExt
6826 This intrinsic is not yet implemented.
6827 The name is, however, reserved as an intrinsic.
6828 Use @samp{EXTERNAL IZExt} to use this name for an
6831 @node JIAbs Intrinsic
6832 @subsubsection JIAbs Intrinsic
6833 @cindex JIAbs intrinsic
6834 @cindex intrinsics, JIAbs
6836 This intrinsic is not yet implemented.
6837 The name is, however, reserved as an intrinsic.
6838 Use @samp{EXTERNAL JIAbs} to use this name for an
6841 @node JIAnd Intrinsic
6842 @subsubsection JIAnd Intrinsic
6843 @cindex JIAnd intrinsic
6844 @cindex intrinsics, JIAnd
6846 This intrinsic is not yet implemented.
6847 The name is, however, reserved as an intrinsic.
6848 Use @samp{EXTERNAL JIAnd} to use this name for an
6851 @node JIBClr Intrinsic
6852 @subsubsection JIBClr Intrinsic
6853 @cindex JIBClr intrinsic
6854 @cindex intrinsics, JIBClr
6856 This intrinsic is not yet implemented.
6857 The name is, however, reserved as an intrinsic.
6858 Use @samp{EXTERNAL JIBClr} to use this name for an
6861 @node JIBits Intrinsic
6862 @subsubsection JIBits Intrinsic
6863 @cindex JIBits intrinsic
6864 @cindex intrinsics, JIBits
6866 This intrinsic is not yet implemented.
6867 The name is, however, reserved as an intrinsic.
6868 Use @samp{EXTERNAL JIBits} to use this name for an
6871 @node JIBSet Intrinsic
6872 @subsubsection JIBSet Intrinsic
6873 @cindex JIBSet intrinsic
6874 @cindex intrinsics, JIBSet
6876 This intrinsic is not yet implemented.
6877 The name is, however, reserved as an intrinsic.
6878 Use @samp{EXTERNAL JIBSet} to use this name for an
6881 @node JIDiM Intrinsic
6882 @subsubsection JIDiM Intrinsic
6883 @cindex JIDiM intrinsic
6884 @cindex intrinsics, JIDiM
6886 This intrinsic is not yet implemented.
6887 The name is, however, reserved as an intrinsic.
6888 Use @samp{EXTERNAL JIDiM} to use this name for an
6891 @node JIDInt Intrinsic
6892 @subsubsection JIDInt Intrinsic
6893 @cindex JIDInt intrinsic
6894 @cindex intrinsics, JIDInt
6896 This intrinsic is not yet implemented.
6897 The name is, however, reserved as an intrinsic.
6898 Use @samp{EXTERNAL JIDInt} to use this name for an
6901 @node JIDNnt Intrinsic
6902 @subsubsection JIDNnt Intrinsic
6903 @cindex JIDNnt intrinsic
6904 @cindex intrinsics, JIDNnt
6906 This intrinsic is not yet implemented.
6907 The name is, however, reserved as an intrinsic.
6908 Use @samp{EXTERNAL JIDNnt} to use this name for an
6911 @node JIEOr Intrinsic
6912 @subsubsection JIEOr Intrinsic
6913 @cindex JIEOr intrinsic
6914 @cindex intrinsics, JIEOr
6916 This intrinsic is not yet implemented.
6917 The name is, however, reserved as an intrinsic.
6918 Use @samp{EXTERNAL JIEOr} to use this name for an
6921 @node JIFix Intrinsic
6922 @subsubsection JIFix Intrinsic
6923 @cindex JIFix intrinsic
6924 @cindex intrinsics, JIFix
6926 This intrinsic is not yet implemented.
6927 The name is, however, reserved as an intrinsic.
6928 Use @samp{EXTERNAL JIFix} to use this name for an
6931 @node JInt Intrinsic
6932 @subsubsection JInt Intrinsic
6933 @cindex JInt intrinsic
6934 @cindex intrinsics, JInt
6936 This intrinsic is not yet implemented.
6937 The name is, however, reserved as an intrinsic.
6938 Use @samp{EXTERNAL JInt} to use this name for an
6941 @node JIOr Intrinsic
6942 @subsubsection JIOr Intrinsic
6943 @cindex JIOr intrinsic
6944 @cindex intrinsics, JIOr
6946 This intrinsic is not yet implemented.
6947 The name is, however, reserved as an intrinsic.
6948 Use @samp{EXTERNAL JIOr} to use this name for an
6951 @node JIQint Intrinsic
6952 @subsubsection JIQint Intrinsic
6953 @cindex JIQint intrinsic
6954 @cindex intrinsics, JIQint
6956 This intrinsic is not yet implemented.
6957 The name is, however, reserved as an intrinsic.
6958 Use @samp{EXTERNAL JIQint} to use this name for an
6961 @node JIQNnt Intrinsic
6962 @subsubsection JIQNnt Intrinsic
6963 @cindex JIQNnt intrinsic
6964 @cindex intrinsics, JIQNnt
6966 This intrinsic is not yet implemented.
6967 The name is, however, reserved as an intrinsic.
6968 Use @samp{EXTERNAL JIQNnt} to use this name for an
6971 @node JIShft Intrinsic
6972 @subsubsection JIShft Intrinsic
6973 @cindex JIShft intrinsic
6974 @cindex intrinsics, JIShft
6976 This intrinsic is not yet implemented.
6977 The name is, however, reserved as an intrinsic.
6978 Use @samp{EXTERNAL JIShft} to use this name for an
6981 @node JIShftC Intrinsic
6982 @subsubsection JIShftC Intrinsic
6983 @cindex JIShftC intrinsic
6984 @cindex intrinsics, JIShftC
6986 This intrinsic is not yet implemented.
6987 The name is, however, reserved as an intrinsic.
6988 Use @samp{EXTERNAL JIShftC} to use this name for an
6991 @node JISign Intrinsic
6992 @subsubsection JISign Intrinsic
6993 @cindex JISign intrinsic
6994 @cindex intrinsics, JISign
6996 This intrinsic is not yet implemented.
6997 The name is, however, reserved as an intrinsic.
6998 Use @samp{EXTERNAL JISign} to use this name for an
7001 @node JMax0 Intrinsic
7002 @subsubsection JMax0 Intrinsic
7003 @cindex JMax0 intrinsic
7004 @cindex intrinsics, JMax0
7006 This intrinsic is not yet implemented.
7007 The name is, however, reserved as an intrinsic.
7008 Use @samp{EXTERNAL JMax0} to use this name for an
7011 @node JMax1 Intrinsic
7012 @subsubsection JMax1 Intrinsic
7013 @cindex JMax1 intrinsic
7014 @cindex intrinsics, JMax1
7016 This intrinsic is not yet implemented.
7017 The name is, however, reserved as an intrinsic.
7018 Use @samp{EXTERNAL JMax1} to use this name for an
7021 @node JMin0 Intrinsic
7022 @subsubsection JMin0 Intrinsic
7023 @cindex JMin0 intrinsic
7024 @cindex intrinsics, JMin0
7026 This intrinsic is not yet implemented.
7027 The name is, however, reserved as an intrinsic.
7028 Use @samp{EXTERNAL JMin0} to use this name for an
7031 @node JMin1 Intrinsic
7032 @subsubsection JMin1 Intrinsic
7033 @cindex JMin1 intrinsic
7034 @cindex intrinsics, JMin1
7036 This intrinsic is not yet implemented.
7037 The name is, however, reserved as an intrinsic.
7038 Use @samp{EXTERNAL JMin1} to use this name for an
7041 @node JMod Intrinsic
7042 @subsubsection JMod Intrinsic
7043 @cindex JMod intrinsic
7044 @cindex intrinsics, JMod
7046 This intrinsic is not yet implemented.
7047 The name is, however, reserved as an intrinsic.
7048 Use @samp{EXTERNAL JMod} to use this name for an
7051 @node JNInt Intrinsic
7052 @subsubsection JNInt Intrinsic
7053 @cindex JNInt intrinsic
7054 @cindex intrinsics, JNInt
7056 This intrinsic is not yet implemented.
7057 The name is, however, reserved as an intrinsic.
7058 Use @samp{EXTERNAL JNInt} to use this name for an
7061 @node JNot Intrinsic
7062 @subsubsection JNot Intrinsic
7063 @cindex JNot intrinsic
7064 @cindex intrinsics, JNot
7066 This intrinsic is not yet implemented.
7067 The name is, however, reserved as an intrinsic.
7068 Use @samp{EXTERNAL JNot} to use this name for an
7071 @node JZExt Intrinsic
7072 @subsubsection JZExt Intrinsic
7073 @cindex JZExt intrinsic
7074 @cindex intrinsics, JZExt
7076 This intrinsic is not yet implemented.
7077 The name is, however, reserved as an intrinsic.
7078 Use @samp{EXTERNAL JZExt} to use this name for an
7083 @node Kill Intrinsic (subroutine)
7084 @subsubsection Kill Intrinsic (subroutine)
7085 @cindex Kill intrinsic
7086 @cindex intrinsics, Kill
7090 CALL Kill(@var{Pid}, @var{Signal}, @var{Status})
7094 @var{Pid}: @code{INTEGER}; scalar; INTENT(IN).
7097 @var{Signal}: @code{INTEGER}; scalar; INTENT(IN).
7100 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
7103 Intrinsic groups: @code{unix}.
7108 Sends the signal specified by @var{Signal} to the process @var{Pid}.
7109 If the @var{Status} argument is supplied, it contains
7110 0 on success or a non-zero error code upon return.
7113 Some non-GNU implementations of Fortran provide this intrinsic as
7114 only a function, not as a subroutine, or do not support the
7115 (optional) @var{Status} argument.
7117 For information on other intrinsics with the same name:
7118 @xref{Kill Intrinsic (function)}.
7122 @node Kill Intrinsic (function)
7123 @subsubsection Kill Intrinsic (function)
7124 @cindex Kill intrinsic
7125 @cindex intrinsics, Kill
7129 Kill(@var{Pid}, @var{Signal})
7133 Kill: @code{INTEGER(KIND=1)} function.
7136 @var{Pid}: @code{INTEGER}; scalar; INTENT(IN).
7139 @var{Signal}: @code{INTEGER}; scalar; INTENT(IN).
7142 Intrinsic groups: @code{badu77}.
7147 Sends the signal specified by @var{Signal} to the process @var{Pid}.
7148 Returns 0 on success or a non-zero error code.
7151 Due to the side effects performed by this intrinsic, the function
7152 form is not recommended.
7154 For information on other intrinsics with the same name:
7155 @xref{Kill Intrinsic (subroutine)}.
7159 @node Kind Intrinsic
7160 @subsubsection Kind Intrinsic
7161 @cindex Kind intrinsic
7162 @cindex intrinsics, Kind
7164 This intrinsic is not yet implemented.
7165 The name is, however, reserved as an intrinsic.
7166 Use @samp{EXTERNAL Kind} to use this name for an
7169 @node LBound Intrinsic
7170 @subsubsection LBound Intrinsic
7171 @cindex LBound intrinsic
7172 @cindex intrinsics, LBound
7174 This intrinsic is not yet implemented.
7175 The name is, however, reserved as an intrinsic.
7176 Use @samp{EXTERNAL LBound} to use this name for an
7182 @subsubsection Len Intrinsic
7183 @cindex Len intrinsic
7184 @cindex intrinsics, Len
7192 Len: @code{INTEGER(KIND=1)} function.
7195 @var{String}: @code{CHARACTER}; scalar.
7198 Intrinsic groups: (standard FORTRAN 77).
7203 Returns the length of @var{String}.
7205 If @var{String} is an array, the length of an element
7206 of @var{String} is returned.
7208 Note that @var{String} need not be defined when this
7209 intrinsic is invoked, since only the length, not
7210 the content, of @var{String} is needed.
7212 @xref{Bit_Size Intrinsic}, for the function that determines
7213 the size of its argument in bits.
7217 @node Len_Trim Intrinsic
7218 @subsubsection Len_Trim Intrinsic
7219 @cindex Len_Trim intrinsic
7220 @cindex intrinsics, Len_Trim
7224 Len_Trim(@var{String})
7228 Len_Trim: @code{INTEGER(KIND=1)} function.
7231 @var{String}: @code{CHARACTER}; scalar; INTENT(IN).
7234 Intrinsic groups: @code{f90}.
7239 Returns the index of the last non-blank character in @var{String}.
7240 @code{LNBLNK} and @code{LEN_TRIM} are equivalent.
7245 @subsubsection LGe Intrinsic
7246 @cindex LGe intrinsic
7247 @cindex intrinsics, LGe
7251 LGe(@var{String_A}, @var{String_B})
7255 LGe: @code{LOGICAL(KIND=1)} function.
7258 @var{String_A}: @code{CHARACTER}; scalar; INTENT(IN).
7261 @var{String_B}: @code{CHARACTER}; scalar; INTENT(IN).
7264 Intrinsic groups: (standard FORTRAN 77).
7269 Returns @samp{.TRUE.} if @samp{@var{String_A}.GE.@var{String_B}},
7270 @samp{.FALSE.} otherwise.
7271 @var{String_A} and @var{String_B} are interpreted as containing
7272 ASCII character codes.
7273 If either value contains a character not in the ASCII
7274 character set, the result is processor dependent.
7276 If the @var{String_A} and @var{String_B} are not the same length,
7277 the shorter is compared as if spaces were appended to
7278 it to form a value that has the same length as the longer.
7280 The lexical comparison intrinsics @code{LGe}, @code{LGt},
7281 @code{LLe}, and @code{LLt} differ from the corresponding
7282 intrinsic operators @code{.GE.}, @code{.GT.},
7283 @code{.LE.}, @code{.LT.}.
7284 Because the ASCII collating sequence is assumed,
7285 the following expressions always return @samp{.TRUE.}:
7293 The following related expressions do @emph{not} always
7294 return @samp{.TRUE.}, as they are not necessarily evaluated
7295 assuming the arguments use ASCII encoding:
7303 The same difference exists
7304 between @code{LGt} and @code{.GT.};
7305 between @code{LLe} and @code{.LE.}; and
7306 between @code{LLt} and @code{.LT.}.
7309 @subsubsection LGt Intrinsic
7310 @cindex LGt intrinsic
7311 @cindex intrinsics, LGt
7315 LGt(@var{String_A}, @var{String_B})
7319 LGt: @code{LOGICAL(KIND=1)} function.
7322 @var{String_A}: @code{CHARACTER}; scalar; INTENT(IN).
7325 @var{String_B}: @code{CHARACTER}; scalar; INTENT(IN).
7328 Intrinsic groups: (standard FORTRAN 77).
7333 Returns @samp{.TRUE.} if @samp{@var{String_A}.GT.@var{String_B}},
7334 @samp{.FALSE.} otherwise.
7335 @var{String_A} and @var{String_B} are interpreted as containing
7336 ASCII character codes.
7337 If either value contains a character not in the ASCII
7338 character set, the result is processor dependent.
7340 If the @var{String_A} and @var{String_B} are not the same length,
7341 the shorter is compared as if spaces were appended to
7342 it to form a value that has the same length as the longer.
7344 @xref{LGe Intrinsic}, for information on the distinction
7345 between the @code{LGT} intrinsic and the @code{.GT.}
7350 @node Link Intrinsic (subroutine)
7351 @subsubsection Link Intrinsic (subroutine)
7352 @cindex Link intrinsic
7353 @cindex intrinsics, Link
7357 CALL Link(@var{Path1}, @var{Path2}, @var{Status})
7361 @var{Path1}: @code{CHARACTER}; scalar; INTENT(IN).
7364 @var{Path2}: @code{CHARACTER}; scalar; INTENT(IN).
7367 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
7370 Intrinsic groups: @code{unix}.
7375 Makes a (hard) link from file @var{Path1} to @var{Path2}.
7376 A null character (@samp{CHAR(0)}) marks the end of
7377 the names in @var{Path1} and @var{Path2}---otherwise,
7378 trailing blanks in @var{Path1} and @var{Path2} are ignored.
7379 If the @var{Status} argument is supplied, it contains
7380 0 on success or a non-zero error code upon return.
7383 Some non-GNU implementations of Fortran provide this intrinsic as
7384 only a function, not as a subroutine, or do not support the
7385 (optional) @var{Status} argument.
7387 For information on other intrinsics with the same name:
7388 @xref{Link Intrinsic (function)}.
7392 @node Link Intrinsic (function)
7393 @subsubsection Link Intrinsic (function)
7394 @cindex Link intrinsic
7395 @cindex intrinsics, Link
7399 Link(@var{Path1}, @var{Path2})
7403 Link: @code{INTEGER(KIND=1)} function.
7406 @var{Path1}: @code{CHARACTER}; scalar; INTENT(IN).
7409 @var{Path2}: @code{CHARACTER}; scalar; INTENT(IN).
7412 Intrinsic groups: @code{badu77}.
7417 Makes a (hard) link from file @var{Path1} to @var{Path2}.
7418 A null character (@samp{CHAR(0)}) marks the end of
7419 the names in @var{Path1} and @var{Path2}---otherwise,
7420 trailing blanks in @var{Path1} and @var{Path2} are ignored.
7421 Returns 0 on success or a non-zero error code.
7424 Due to the side effects performed by this intrinsic, the function
7425 form is not recommended.
7427 For information on other intrinsics with the same name:
7428 @xref{Link Intrinsic (subroutine)}.
7433 @subsubsection LLe Intrinsic
7434 @cindex LLe intrinsic
7435 @cindex intrinsics, LLe
7439 LLe(@var{String_A}, @var{String_B})
7443 LLe: @code{LOGICAL(KIND=1)} function.
7446 @var{String_A}: @code{CHARACTER}; scalar; INTENT(IN).
7449 @var{String_B}: @code{CHARACTER}; scalar; INTENT(IN).
7452 Intrinsic groups: (standard FORTRAN 77).
7457 Returns @samp{.TRUE.} if @samp{@var{String_A}.LE.@var{String_B}},
7458 @samp{.FALSE.} otherwise.
7459 @var{String_A} and @var{String_B} are interpreted as containing
7460 ASCII character codes.
7461 If either value contains a character not in the ASCII
7462 character set, the result is processor dependent.
7464 If the @var{String_A} and @var{String_B} are not the same length,
7465 the shorter is compared as if spaces were appended to
7466 it to form a value that has the same length as the longer.
7468 @xref{LGe Intrinsic}, for information on the distinction
7469 between the @code{LLE} intrinsic and the @code{.LE.}
7473 @subsubsection LLt Intrinsic
7474 @cindex LLt intrinsic
7475 @cindex intrinsics, LLt
7479 LLt(@var{String_A}, @var{String_B})
7483 LLt: @code{LOGICAL(KIND=1)} function.
7486 @var{String_A}: @code{CHARACTER}; scalar; INTENT(IN).
7489 @var{String_B}: @code{CHARACTER}; scalar; INTENT(IN).
7492 Intrinsic groups: (standard FORTRAN 77).
7497 Returns @samp{.TRUE.} if @samp{@var{String_A}.LT.@var{String_B}},
7498 @samp{.FALSE.} otherwise.
7499 @var{String_A} and @var{String_B} are interpreted as containing
7500 ASCII character codes.
7501 If either value contains a character not in the ASCII
7502 character set, the result is processor dependent.
7504 If the @var{String_A} and @var{String_B} are not the same length,
7505 the shorter is compared as if spaces were appended to
7506 it to form a value that has the same length as the longer.
7508 @xref{LGe Intrinsic}, for information on the distinction
7509 between the @code{LLT} intrinsic and the @code{.LT.}
7514 @node LnBlnk Intrinsic
7515 @subsubsection LnBlnk Intrinsic
7516 @cindex LnBlnk intrinsic
7517 @cindex intrinsics, LnBlnk
7521 LnBlnk(@var{String})
7525 LnBlnk: @code{INTEGER(KIND=1)} function.
7528 @var{String}: @code{CHARACTER}; scalar; INTENT(IN).
7531 Intrinsic groups: @code{unix}.
7536 Returns the index of the last non-blank character in @var{String}.
7537 @code{LNBLNK} and @code{LEN_TRIM} are equivalent.
7540 @subsubsection Loc Intrinsic
7541 @cindex Loc intrinsic
7542 @cindex intrinsics, Loc
7550 Loc: @code{INTEGER(KIND=7)} function.
7553 @var{Entity}: Any type; cannot be a constant or expression.
7556 Intrinsic groups: @code{unix}.
7561 The @code{LOC()} intrinsic works the
7562 same way as the @code{%LOC()} construct.
7563 @xref{%LOC(),,The @code{%LOC()} Construct}, for
7569 @subsubsection Log Intrinsic
7570 @cindex Log intrinsic
7571 @cindex intrinsics, Log
7579 Log: @code{REAL} or @code{COMPLEX} function, the exact type being that of argument @var{X}.
7582 @var{X}: @code{REAL} or @code{COMPLEX}; scalar; INTENT(IN).
7585 Intrinsic groups: (standard FORTRAN 77).
7590 Returns the natural logarithm of @var{X}, which must
7591 be greater than zero or, if type @code{COMPLEX}, must not
7594 @xref{Exp Intrinsic}, for the inverse of this function.
7596 @xref{Log10 Intrinsic}, for the `common' (base-10) logarithm function.
7598 @node Log10 Intrinsic
7599 @subsubsection Log10 Intrinsic
7600 @cindex Log10 intrinsic
7601 @cindex intrinsics, Log10
7609 Log10: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{X}.
7612 @var{X}: @code{REAL}; scalar; INTENT(IN).
7615 Intrinsic groups: (standard FORTRAN 77).
7620 Returns the common logarithm (base 10) of @var{X}, which must
7621 be greater than zero.
7623 The inverse of this function is @samp{10. ** LOG10(@var{X})}.
7625 @xref{Log Intrinsic}, for the natural logarithm function.
7629 @node Logical Intrinsic
7630 @subsubsection Logical Intrinsic
7631 @cindex Logical intrinsic
7632 @cindex intrinsics, Logical
7634 This intrinsic is not yet implemented.
7635 The name is, however, reserved as an intrinsic.
7636 Use @samp{EXTERNAL Logical} to use this name for an
7641 @node Long Intrinsic
7642 @subsubsection Long Intrinsic
7643 @cindex Long intrinsic
7644 @cindex intrinsics, Long
7652 Long: @code{INTEGER(KIND=1)} function.
7655 @var{A}: @code{INTEGER(KIND=6)}; scalar; INTENT(IN).
7658 Intrinsic groups: @code{unix}.
7663 Archaic form of @code{INT()} that is specific
7664 to one type for @var{A}.
7665 @xref{Int Intrinsic}.
7667 The precise meaning of this intrinsic might change
7668 in a future version of the GNU Fortran language,
7669 as more is learned about how it is used.
7673 @node LShift Intrinsic
7674 @subsubsection LShift Intrinsic
7675 @cindex LShift intrinsic
7676 @cindex intrinsics, LShift
7680 LShift(@var{I}, @var{Shift})
7684 LShift: @code{INTEGER} function, the @samp{KIND=} value of the type being that of argument @var{I}.
7687 @var{I}: @code{INTEGER}; scalar; INTENT(IN).
7690 @var{Shift}: @code{INTEGER}; scalar; INTENT(IN).
7693 Intrinsic groups: @code{f2c}.
7698 Returns @var{I} shifted to the left
7701 Although similar to the expression
7702 @samp{@var{I}*(2**@var{Shift})}, there
7703 are important differences.
7704 For example, the sign of the result is
7705 not necessarily the same as the sign of
7708 Currently this intrinsic is defined assuming
7709 the underlying representation of @var{I}
7710 is as a two's-complement integer.
7711 It is unclear at this point whether that
7712 definition will apply when a different
7713 representation is involved.
7715 @xref{LShift Intrinsic}, for the inverse of this function.
7717 @xref{IShft Intrinsic}, for information
7718 on a more widely available left-shifting
7719 intrinsic that is also more precisely defined.
7723 @node LStat Intrinsic (subroutine)
7724 @subsubsection LStat Intrinsic (subroutine)
7725 @cindex LStat intrinsic
7726 @cindex intrinsics, LStat
7730 CALL LStat(@var{File}, @var{SArray}, @var{Status})
7734 @var{File}: @code{CHARACTER}; scalar; INTENT(IN).
7737 @var{SArray}: @code{INTEGER(KIND=1)}; DIMENSION(13); INTENT(OUT).
7740 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
7743 Intrinsic groups: @code{unix}.
7748 Obtains data about the given file @var{File} and places them in the array
7750 A null character (@samp{CHAR(0)}) marks the end of
7751 the name in @var{File}---otherwise,
7752 trailing blanks in @var{File} are ignored.
7753 If @var{File} is a symbolic link it returns data on the
7754 link itself, so the routine is available only on systems that support
7756 The values in this array are extracted from the
7757 @code{stat} structure as returned by @code{fstat(2)} q.v., as follows:
7779 ID of device containing directory entry for file
7780 (0 if not available)
7789 Last modification time
7792 Last file status change time
7795 Preferred I/O block size (-1 if not available)
7798 Number of blocks allocated (-1 if not available)
7801 Not all these elements are relevant on all systems.
7802 If an element is not relevant, it is returned as 0.
7804 If the @var{Status} argument is supplied, it contains
7805 0 on success or a non-zero error code upon return
7806 (@code{ENOSYS} if the system does not provide @code{lstat(2)}).
7808 Some non-GNU implementations of Fortran provide this intrinsic as
7809 only a function, not as a subroutine, or do not support the
7810 (optional) @var{Status} argument.
7812 For information on other intrinsics with the same name:
7813 @xref{LStat Intrinsic (function)}.
7815 @node LStat Intrinsic (function)
7816 @subsubsection LStat Intrinsic (function)
7817 @cindex LStat intrinsic
7818 @cindex intrinsics, LStat
7822 LStat(@var{File}, @var{SArray})
7826 LStat: @code{INTEGER(KIND=1)} function.
7829 @var{File}: @code{CHARACTER}; scalar; INTENT(IN).
7832 @var{SArray}: @code{INTEGER(KIND=1)}; DIMENSION(13); INTENT(OUT).
7835 Intrinsic groups: @code{unix}.
7840 Obtains data about the given file @var{File} and places them in the array
7842 A null character (@samp{CHAR(0)}) marks the end of
7843 the name in @var{File}---otherwise,
7844 trailing blanks in @var{File} are ignored.
7845 If @var{File} is a symbolic link it returns data on the
7846 link itself, so the routine is available only on systems that support
7848 The values in this array are extracted from the
7849 @code{stat} structure as returned by @code{fstat(2)} q.v., as follows:
7871 ID of device containing directory entry for file
7872 (0 if not available)
7881 Last modification time
7884 Last file status change time
7887 Preferred I/O block size (-1 if not available)
7890 Number of blocks allocated (-1 if not available)
7893 Not all these elements are relevant on all systems.
7894 If an element is not relevant, it is returned as 0.
7896 Returns 0 on success or a non-zero error code
7897 (@code{ENOSYS} if the system does not provide @code{lstat(2)}).
7899 For information on other intrinsics with the same name:
7900 @xref{LStat Intrinsic (subroutine)}.
7902 @node LTime Intrinsic
7903 @subsubsection LTime Intrinsic
7904 @cindex LTime intrinsic
7905 @cindex intrinsics, LTime
7909 CALL LTime(@var{STime}, @var{TArray})
7913 @var{STime}: @code{INTEGER(KIND=1)}; scalar; INTENT(IN).
7916 @var{TArray}: @code{INTEGER(KIND=1)}; DIMENSION(9); INTENT(OUT).
7919 Intrinsic groups: @code{unix}.
7924 Given a system time value @var{STime}, fills @var{TArray} with values
7925 extracted from it appropriate to the GMT time zone using
7926 @code{localtime(3)}.
7928 The array elements are as follows:
7932 Seconds after the minute, range 0--59 or 0--61 to allow for leap
7936 Minutes after the hour, range 0--59
7939 Hours past midnight, range 0--23
7942 Day of month, range 0--31
7945 Number of months since January, range 0--12
7951 Number of days since Sunday, range 0--6
7954 Days since January 1
7957 Daylight savings indicator: positive if daylight savings is in effect,
7958 zero if not, and negative if the information isn't available.
7963 @node MatMul Intrinsic
7964 @subsubsection MatMul Intrinsic
7965 @cindex MatMul intrinsic
7966 @cindex intrinsics, MatMul
7968 This intrinsic is not yet implemented.
7969 The name is, however, reserved as an intrinsic.
7970 Use @samp{EXTERNAL MatMul} to use this name for an
7976 @subsubsection Max Intrinsic
7977 @cindex Max intrinsic
7978 @cindex intrinsics, Max
7982 Max(@var{A}-1, @var{A}-2, @dots{}, @var{A}-n)
7986 Max: @code{INTEGER} or @code{REAL} function, the exact type being the result of cross-promoting the
7987 types of all the arguments.
7990 @var{A}: @code{INTEGER} or @code{REAL}; at least two such arguments must be provided; scalar; INTENT(IN).
7993 Intrinsic groups: (standard FORTRAN 77).
7998 Returns the argument with the largest value.
8000 @xref{Min Intrinsic}, for the opposite function.
8002 @node Max0 Intrinsic
8003 @subsubsection Max0 Intrinsic
8004 @cindex Max0 intrinsic
8005 @cindex intrinsics, Max0
8009 Max0(@var{A}-1, @var{A}-2, @dots{}, @var{A}-n)
8013 Max0: @code{INTEGER(KIND=1)} function.
8016 @var{A}: @code{INTEGER(KIND=1)}; at least two such arguments must be provided; scalar; INTENT(IN).
8019 Intrinsic groups: (standard FORTRAN 77).
8024 Archaic form of @code{MAX()} that is specific
8025 to one type for @var{A}.
8026 @xref{Max Intrinsic}.
8028 @node Max1 Intrinsic
8029 @subsubsection Max1 Intrinsic
8030 @cindex Max1 intrinsic
8031 @cindex intrinsics, Max1
8035 Max1(@var{A}-1, @var{A}-2, @dots{}, @var{A}-n)
8039 Max1: @code{INTEGER(KIND=1)} function.
8042 @var{A}: @code{REAL(KIND=1)}; at least two such arguments must be provided; scalar; INTENT(IN).
8045 Intrinsic groups: (standard FORTRAN 77).
8050 Archaic form of @code{MAX()} that is specific
8051 to one type for @var{A} and a different return type.
8052 @xref{Max Intrinsic}.
8056 @node MaxExponent Intrinsic
8057 @subsubsection MaxExponent Intrinsic
8058 @cindex MaxExponent intrinsic
8059 @cindex intrinsics, MaxExponent
8061 This intrinsic is not yet implemented.
8062 The name is, however, reserved as an intrinsic.
8063 Use @samp{EXTERNAL MaxExponent} to use this name for an
8066 @node MaxLoc Intrinsic
8067 @subsubsection MaxLoc Intrinsic
8068 @cindex MaxLoc intrinsic
8069 @cindex intrinsics, MaxLoc
8071 This intrinsic is not yet implemented.
8072 The name is, however, reserved as an intrinsic.
8073 Use @samp{EXTERNAL MaxLoc} to use this name for an
8076 @node MaxVal Intrinsic
8077 @subsubsection MaxVal Intrinsic
8078 @cindex MaxVal intrinsic
8079 @cindex intrinsics, MaxVal
8081 This intrinsic is not yet implemented.
8082 The name is, however, reserved as an intrinsic.
8083 Use @samp{EXTERNAL MaxVal} to use this name for an
8088 @node MClock Intrinsic
8089 @subsubsection MClock Intrinsic
8090 @cindex MClock intrinsic
8091 @cindex intrinsics, MClock
8099 MClock: @code{INTEGER(KIND=1)} function.
8102 Intrinsic groups: @code{unix}.
8107 Returns the number of clock ticks since the start of the process.
8108 Supported on systems with @code{clock(3)} (q.v.).
8110 @cindex wraparound, timings
8111 @cindex limits, timings
8112 This intrinsic is not fully portable, such as to systems
8113 with 32-bit @code{INTEGER} types but supporting times
8115 Therefore, the values returned by this intrinsic
8116 might be, or become, negative,
8117 or numerically less than previous values,
8118 during a single run of the compiled program.
8120 @xref{MClock8 Intrinsic}, for information on a
8121 similar intrinsic that might be portable to more
8122 GNU Fortran implementations, though to fewer
8125 If the system does not support @code{clock(3)},
8128 @node MClock8 Intrinsic
8129 @subsubsection MClock8 Intrinsic
8130 @cindex MClock8 intrinsic
8131 @cindex intrinsics, MClock8
8139 MClock8: @code{INTEGER(KIND=2)} function.
8142 Intrinsic groups: @code{unix}.
8147 Returns the number of clock ticks since the start of the process.
8148 Supported on systems with @code{clock(3)} (q.v.).
8150 @cindex wraparound, timings
8151 @cindex limits, timings
8152 @emph{Warning:} this intrinsic does not increase the range
8153 of the timing values over that returned by @code{clock(3)}.
8154 On a system with a 32-bit @code{clock(3)},
8155 @code{MCLOCK8} will return a 32-bit value,
8156 even though converted to an @samp{INTEGER(KIND=2)} value.
8157 That means overflows of the 32-bit value can still occur.
8158 Therefore, the values returned by this intrinsic
8159 might be, or become, negative,
8160 or numerically less than previous values,
8161 during a single run of the compiled program.
8163 No Fortran implementations other than GNU Fortran are
8164 known to support this intrinsic at the time of this
8166 @xref{MClock Intrinsic}, for information on a
8167 similar intrinsic that might be portable to more Fortran
8168 compilers, though to fewer GNU Fortran implementations.
8170 If the system does not support @code{clock(3)},
8175 @node Merge Intrinsic
8176 @subsubsection Merge Intrinsic
8177 @cindex Merge intrinsic
8178 @cindex intrinsics, Merge
8180 This intrinsic is not yet implemented.
8181 The name is, however, reserved as an intrinsic.
8182 Use @samp{EXTERNAL Merge} to use this name for an
8188 @subsubsection Min Intrinsic
8189 @cindex Min intrinsic
8190 @cindex intrinsics, Min
8194 Min(@var{A}-1, @var{A}-2, @dots{}, @var{A}-n)
8198 Min: @code{INTEGER} or @code{REAL} function, the exact type being the result of cross-promoting the
8199 types of all the arguments.
8202 @var{A}: @code{INTEGER} or @code{REAL}; at least two such arguments must be provided; scalar; INTENT(IN).
8205 Intrinsic groups: (standard FORTRAN 77).
8210 Returns the argument with the smallest value.
8212 @xref{Max Intrinsic}, for the opposite function.
8214 @node Min0 Intrinsic
8215 @subsubsection Min0 Intrinsic
8216 @cindex Min0 intrinsic
8217 @cindex intrinsics, Min0
8221 Min0(@var{A}-1, @var{A}-2, @dots{}, @var{A}-n)
8225 Min0: @code{INTEGER(KIND=1)} function.
8228 @var{A}: @code{INTEGER(KIND=1)}; at least two such arguments must be provided; scalar; INTENT(IN).
8231 Intrinsic groups: (standard FORTRAN 77).
8236 Archaic form of @code{MIN()} that is specific
8237 to one type for @var{A}.
8238 @xref{Min Intrinsic}.
8240 @node Min1 Intrinsic
8241 @subsubsection Min1 Intrinsic
8242 @cindex Min1 intrinsic
8243 @cindex intrinsics, Min1
8247 Min1(@var{A}-1, @var{A}-2, @dots{}, @var{A}-n)
8251 Min1: @code{INTEGER(KIND=1)} function.
8254 @var{A}: @code{REAL(KIND=1)}; at least two such arguments must be provided; scalar; INTENT(IN).
8257 Intrinsic groups: (standard FORTRAN 77).
8262 Archaic form of @code{MIN()} that is specific
8263 to one type for @var{A} and a different return type.
8264 @xref{Min Intrinsic}.
8268 @node MinExponent Intrinsic
8269 @subsubsection MinExponent Intrinsic
8270 @cindex MinExponent intrinsic
8271 @cindex intrinsics, MinExponent
8273 This intrinsic is not yet implemented.
8274 The name is, however, reserved as an intrinsic.
8275 Use @samp{EXTERNAL MinExponent} to use this name for an
8278 @node MinLoc Intrinsic
8279 @subsubsection MinLoc Intrinsic
8280 @cindex MinLoc intrinsic
8281 @cindex intrinsics, MinLoc
8283 This intrinsic is not yet implemented.
8284 The name is, however, reserved as an intrinsic.
8285 Use @samp{EXTERNAL MinLoc} to use this name for an
8288 @node MinVal Intrinsic
8289 @subsubsection MinVal Intrinsic
8290 @cindex MinVal intrinsic
8291 @cindex intrinsics, MinVal
8293 This intrinsic is not yet implemented.
8294 The name is, however, reserved as an intrinsic.
8295 Use @samp{EXTERNAL MinVal} to use this name for an
8301 @subsubsection Mod Intrinsic
8302 @cindex Mod intrinsic
8303 @cindex intrinsics, Mod
8307 Mod(@var{A}, @var{P})
8311 Mod: @code{INTEGER} or @code{REAL} function, the exact type being the result of cross-promoting the
8312 types of all the arguments.
8315 @var{A}: @code{INTEGER} or @code{REAL}; scalar; INTENT(IN).
8318 @var{P}: @code{INTEGER} or @code{REAL}; scalar; INTENT(IN).
8321 Intrinsic groups: (standard FORTRAN 77).
8326 Returns remainder calculated as:
8329 @var{A} - (INT(@var{A} / @var{P}) * @var{P})
8332 @var{P} must not be zero.
8336 @node Modulo Intrinsic
8337 @subsubsection Modulo Intrinsic
8338 @cindex Modulo intrinsic
8339 @cindex intrinsics, Modulo
8341 This intrinsic is not yet implemented.
8342 The name is, however, reserved as an intrinsic.
8343 Use @samp{EXTERNAL Modulo} to use this name for an
8348 @node MvBits Intrinsic
8349 @subsubsection MvBits Intrinsic
8350 @cindex MvBits intrinsic
8351 @cindex intrinsics, MvBits
8355 CALL MvBits(@var{From}, @var{FromPos}, @var{Len}, @var{TO}, @var{ToPos})
8359 @var{From}: @code{INTEGER}; scalar; INTENT(IN).
8362 @var{FromPos}: @code{INTEGER}; scalar; INTENT(IN).
8365 @var{Len}: @code{INTEGER}; scalar; INTENT(IN).
8368 @var{TO}: @code{INTEGER} with same @samp{KIND=} value as for @var{From}; scalar; INTENT(INOUT).
8371 @var{ToPos}: @code{INTEGER}; scalar; INTENT(IN).
8374 Intrinsic groups: @code{mil}, @code{f90}, @code{vxt}.
8379 Moves @var{Len} bits from positions @var{FromPos} through
8380 @samp{@var{FromPos}+@var{Len}-1} of @var{From} to positions @var{ToPos} through
8381 @samp{@var{FromPos}+@var{Len}-1} of @var{TO}. The portion of argument
8382 @var{TO} not affected by the movement of bits is unchanged. Arguments
8383 @var{From} and @var{TO} are permitted to be the same numeric storage
8384 unit. The values of @samp{@var{FromPos}+@var{Len}} and
8385 @samp{@var{ToPos}+@var{Len}} must be less than or equal to
8386 @samp{BIT_SIZE(@var{From})}.
8390 @node Nearest Intrinsic
8391 @subsubsection Nearest Intrinsic
8392 @cindex Nearest intrinsic
8393 @cindex intrinsics, Nearest
8395 This intrinsic is not yet implemented.
8396 The name is, however, reserved as an intrinsic.
8397 Use @samp{EXTERNAL Nearest} to use this name for an
8402 @node NInt Intrinsic
8403 @subsubsection NInt Intrinsic
8404 @cindex NInt intrinsic
8405 @cindex intrinsics, NInt
8413 NInt: @code{INTEGER(KIND=1)} function.
8416 @var{A}: @code{REAL}; scalar; INTENT(IN).
8419 Intrinsic groups: (standard FORTRAN 77).
8424 Returns @var{A} with the fractional portion of its
8425 magnitude eliminated by rounding to the nearest whole
8426 number and with its sign preserved, converted
8427 to type @code{INTEGER(KIND=1)}.
8429 If @var{A} is type @code{COMPLEX}, its real part is
8430 rounded and converted.
8432 A fractional portion exactly equal to
8433 @samp{.5} is rounded to the whole number that
8434 is larger in magnitude.
8435 (Also called ``Fortran round''.)
8437 @xref{Int Intrinsic}, for how to convert, truncate to
8440 @xref{ANInt Intrinsic}, for how to round to nearest whole number
8446 @subsubsection Not Intrinsic
8447 @cindex Not intrinsic
8448 @cindex intrinsics, Not
8456 Not: @code{INTEGER} function, the @samp{KIND=} value of the type being that of argument @var{I}.
8459 @var{I}: @code{INTEGER}; scalar; INTENT(IN).
8462 Intrinsic groups: @code{mil}, @code{f90}, @code{vxt}.
8467 Returns value resulting from boolean NOT of each bit
8473 @subsubsection Or Intrinsic
8474 @cindex Or intrinsic
8475 @cindex intrinsics, Or
8479 Or(@var{I}, @var{J})
8483 Or: @code{INTEGER} or @code{LOGICAL} function, the exact type being the result of cross-promoting the
8484 types of all the arguments.
8487 @var{I}: @code{INTEGER} or @code{LOGICAL}; scalar; INTENT(IN).
8490 @var{J}: @code{INTEGER} or @code{LOGICAL}; scalar; INTENT(IN).
8493 Intrinsic groups: @code{f2c}.
8498 Returns value resulting from boolean OR of
8499 pair of bits in each of @var{I} and @var{J}.
8503 @node Pack Intrinsic
8504 @subsubsection Pack Intrinsic
8505 @cindex Pack intrinsic
8506 @cindex intrinsics, Pack
8508 This intrinsic is not yet implemented.
8509 The name is, however, reserved as an intrinsic.
8510 Use @samp{EXTERNAL Pack} to use this name for an
8515 @node PError Intrinsic
8516 @subsubsection PError Intrinsic
8517 @cindex PError intrinsic
8518 @cindex intrinsics, PError
8522 CALL PError(@var{String})
8526 @var{String}: @code{CHARACTER}; scalar; INTENT(IN).
8529 Intrinsic groups: @code{unix}.
8534 Prints (on the C @code{stderr} stream) a newline-terminated error
8535 message corresponding to the last system error.
8536 This is prefixed by @var{String}, a colon and a space.
8537 See @code{perror(3)}.
8541 @node Precision Intrinsic
8542 @subsubsection Precision Intrinsic
8543 @cindex Precision intrinsic
8544 @cindex intrinsics, Precision
8546 This intrinsic is not yet implemented.
8547 The name is, however, reserved as an intrinsic.
8548 Use @samp{EXTERNAL Precision} to use this name for an
8551 @node Present Intrinsic
8552 @subsubsection Present Intrinsic
8553 @cindex Present intrinsic
8554 @cindex intrinsics, Present
8556 This intrinsic is not yet implemented.
8557 The name is, however, reserved as an intrinsic.
8558 Use @samp{EXTERNAL Present} to use this name for an
8561 @node Product Intrinsic
8562 @subsubsection Product Intrinsic
8563 @cindex Product intrinsic
8564 @cindex intrinsics, Product
8566 This intrinsic is not yet implemented.
8567 The name is, however, reserved as an intrinsic.
8568 Use @samp{EXTERNAL Product} to use this name for an
8573 @node QAbs Intrinsic
8574 @subsubsection QAbs Intrinsic
8575 @cindex QAbs intrinsic
8576 @cindex intrinsics, QAbs
8578 This intrinsic is not yet implemented.
8579 The name is, however, reserved as an intrinsic.
8580 Use @samp{EXTERNAL QAbs} to use this name for an
8583 @node QACos Intrinsic
8584 @subsubsection QACos Intrinsic
8585 @cindex QACos intrinsic
8586 @cindex intrinsics, QACos
8588 This intrinsic is not yet implemented.
8589 The name is, however, reserved as an intrinsic.
8590 Use @samp{EXTERNAL QACos} to use this name for an
8593 @node QACosD Intrinsic
8594 @subsubsection QACosD Intrinsic
8595 @cindex QACosD intrinsic
8596 @cindex intrinsics, QACosD
8598 This intrinsic is not yet implemented.
8599 The name is, however, reserved as an intrinsic.
8600 Use @samp{EXTERNAL QACosD} to use this name for an
8603 @node QASin Intrinsic
8604 @subsubsection QASin Intrinsic
8605 @cindex QASin intrinsic
8606 @cindex intrinsics, QASin
8608 This intrinsic is not yet implemented.
8609 The name is, however, reserved as an intrinsic.
8610 Use @samp{EXTERNAL QASin} to use this name for an
8613 @node QASinD Intrinsic
8614 @subsubsection QASinD Intrinsic
8615 @cindex QASinD intrinsic
8616 @cindex intrinsics, QASinD
8618 This intrinsic is not yet implemented.
8619 The name is, however, reserved as an intrinsic.
8620 Use @samp{EXTERNAL QASinD} to use this name for an
8623 @node QATan Intrinsic
8624 @subsubsection QATan Intrinsic
8625 @cindex QATan intrinsic
8626 @cindex intrinsics, QATan
8628 This intrinsic is not yet implemented.
8629 The name is, however, reserved as an intrinsic.
8630 Use @samp{EXTERNAL QATan} to use this name for an
8633 @node QATan2 Intrinsic
8634 @subsubsection QATan2 Intrinsic
8635 @cindex QATan2 intrinsic
8636 @cindex intrinsics, QATan2
8638 This intrinsic is not yet implemented.
8639 The name is, however, reserved as an intrinsic.
8640 Use @samp{EXTERNAL QATan2} to use this name for an
8643 @node QATan2D Intrinsic
8644 @subsubsection QATan2D Intrinsic
8645 @cindex QATan2D intrinsic
8646 @cindex intrinsics, QATan2D
8648 This intrinsic is not yet implemented.
8649 The name is, however, reserved as an intrinsic.
8650 Use @samp{EXTERNAL QATan2D} to use this name for an
8653 @node QATanD Intrinsic
8654 @subsubsection QATanD Intrinsic
8655 @cindex QATanD intrinsic
8656 @cindex intrinsics, QATanD
8658 This intrinsic is not yet implemented.
8659 The name is, however, reserved as an intrinsic.
8660 Use @samp{EXTERNAL QATanD} to use this name for an
8663 @node QCos Intrinsic
8664 @subsubsection QCos Intrinsic
8665 @cindex QCos intrinsic
8666 @cindex intrinsics, QCos
8668 This intrinsic is not yet implemented.
8669 The name is, however, reserved as an intrinsic.
8670 Use @samp{EXTERNAL QCos} to use this name for an
8673 @node QCosD Intrinsic
8674 @subsubsection QCosD Intrinsic
8675 @cindex QCosD intrinsic
8676 @cindex intrinsics, QCosD
8678 This intrinsic is not yet implemented.
8679 The name is, however, reserved as an intrinsic.
8680 Use @samp{EXTERNAL QCosD} to use this name for an
8683 @node QCosH Intrinsic
8684 @subsubsection QCosH Intrinsic
8685 @cindex QCosH intrinsic
8686 @cindex intrinsics, QCosH
8688 This intrinsic is not yet implemented.
8689 The name is, however, reserved as an intrinsic.
8690 Use @samp{EXTERNAL QCosH} to use this name for an
8693 @node QDiM Intrinsic
8694 @subsubsection QDiM Intrinsic
8695 @cindex QDiM intrinsic
8696 @cindex intrinsics, QDiM
8698 This intrinsic is not yet implemented.
8699 The name is, however, reserved as an intrinsic.
8700 Use @samp{EXTERNAL QDiM} to use this name for an
8703 @node QExp Intrinsic
8704 @subsubsection QExp Intrinsic
8705 @cindex QExp intrinsic
8706 @cindex intrinsics, QExp
8708 This intrinsic is not yet implemented.
8709 The name is, however, reserved as an intrinsic.
8710 Use @samp{EXTERNAL QExp} to use this name for an
8713 @node QExt Intrinsic
8714 @subsubsection QExt Intrinsic
8715 @cindex QExt intrinsic
8716 @cindex intrinsics, QExt
8718 This intrinsic is not yet implemented.
8719 The name is, however, reserved as an intrinsic.
8720 Use @samp{EXTERNAL QExt} to use this name for an
8723 @node QExtD Intrinsic
8724 @subsubsection QExtD Intrinsic
8725 @cindex QExtD intrinsic
8726 @cindex intrinsics, QExtD
8728 This intrinsic is not yet implemented.
8729 The name is, however, reserved as an intrinsic.
8730 Use @samp{EXTERNAL QExtD} to use this name for an
8733 @node QFloat Intrinsic
8734 @subsubsection QFloat Intrinsic
8735 @cindex QFloat intrinsic
8736 @cindex intrinsics, QFloat
8738 This intrinsic is not yet implemented.
8739 The name is, however, reserved as an intrinsic.
8740 Use @samp{EXTERNAL QFloat} to use this name for an
8743 @node QInt Intrinsic
8744 @subsubsection QInt Intrinsic
8745 @cindex QInt intrinsic
8746 @cindex intrinsics, QInt
8748 This intrinsic is not yet implemented.
8749 The name is, however, reserved as an intrinsic.
8750 Use @samp{EXTERNAL QInt} to use this name for an
8753 @node QLog Intrinsic
8754 @subsubsection QLog Intrinsic
8755 @cindex QLog intrinsic
8756 @cindex intrinsics, QLog
8758 This intrinsic is not yet implemented.
8759 The name is, however, reserved as an intrinsic.
8760 Use @samp{EXTERNAL QLog} to use this name for an
8763 @node QLog10 Intrinsic
8764 @subsubsection QLog10 Intrinsic
8765 @cindex QLog10 intrinsic
8766 @cindex intrinsics, QLog10
8768 This intrinsic is not yet implemented.
8769 The name is, however, reserved as an intrinsic.
8770 Use @samp{EXTERNAL QLog10} to use this name for an
8773 @node QMax1 Intrinsic
8774 @subsubsection QMax1 Intrinsic
8775 @cindex QMax1 intrinsic
8776 @cindex intrinsics, QMax1
8778 This intrinsic is not yet implemented.
8779 The name is, however, reserved as an intrinsic.
8780 Use @samp{EXTERNAL QMax1} to use this name for an
8783 @node QMin1 Intrinsic
8784 @subsubsection QMin1 Intrinsic
8785 @cindex QMin1 intrinsic
8786 @cindex intrinsics, QMin1
8788 This intrinsic is not yet implemented.
8789 The name is, however, reserved as an intrinsic.
8790 Use @samp{EXTERNAL QMin1} to use this name for an
8793 @node QMod Intrinsic
8794 @subsubsection QMod Intrinsic
8795 @cindex QMod intrinsic
8796 @cindex intrinsics, QMod
8798 This intrinsic is not yet implemented.
8799 The name is, however, reserved as an intrinsic.
8800 Use @samp{EXTERNAL QMod} to use this name for an
8803 @node QNInt Intrinsic
8804 @subsubsection QNInt Intrinsic
8805 @cindex QNInt intrinsic
8806 @cindex intrinsics, QNInt
8808 This intrinsic is not yet implemented.
8809 The name is, however, reserved as an intrinsic.
8810 Use @samp{EXTERNAL QNInt} to use this name for an
8813 @node QSin Intrinsic
8814 @subsubsection QSin Intrinsic
8815 @cindex QSin intrinsic
8816 @cindex intrinsics, QSin
8818 This intrinsic is not yet implemented.
8819 The name is, however, reserved as an intrinsic.
8820 Use @samp{EXTERNAL QSin} to use this name for an
8823 @node QSinD Intrinsic
8824 @subsubsection QSinD Intrinsic
8825 @cindex QSinD intrinsic
8826 @cindex intrinsics, QSinD
8828 This intrinsic is not yet implemented.
8829 The name is, however, reserved as an intrinsic.
8830 Use @samp{EXTERNAL QSinD} to use this name for an
8833 @node QSinH Intrinsic
8834 @subsubsection QSinH Intrinsic
8835 @cindex QSinH intrinsic
8836 @cindex intrinsics, QSinH
8838 This intrinsic is not yet implemented.
8839 The name is, however, reserved as an intrinsic.
8840 Use @samp{EXTERNAL QSinH} to use this name for an
8843 @node QSqRt Intrinsic
8844 @subsubsection QSqRt Intrinsic
8845 @cindex QSqRt intrinsic
8846 @cindex intrinsics, QSqRt
8848 This intrinsic is not yet implemented.
8849 The name is, however, reserved as an intrinsic.
8850 Use @samp{EXTERNAL QSqRt} to use this name for an
8853 @node QTan Intrinsic
8854 @subsubsection QTan Intrinsic
8855 @cindex QTan intrinsic
8856 @cindex intrinsics, QTan
8858 This intrinsic is not yet implemented.
8859 The name is, however, reserved as an intrinsic.
8860 Use @samp{EXTERNAL QTan} to use this name for an
8863 @node QTanD Intrinsic
8864 @subsubsection QTanD Intrinsic
8865 @cindex QTanD intrinsic
8866 @cindex intrinsics, QTanD
8868 This intrinsic is not yet implemented.
8869 The name is, however, reserved as an intrinsic.
8870 Use @samp{EXTERNAL QTanD} to use this name for an
8873 @node QTanH Intrinsic
8874 @subsubsection QTanH Intrinsic
8875 @cindex QTanH intrinsic
8876 @cindex intrinsics, QTanH
8878 This intrinsic is not yet implemented.
8879 The name is, however, reserved as an intrinsic.
8880 Use @samp{EXTERNAL QTanH} to use this name for an
8885 @node Radix Intrinsic
8886 @subsubsection Radix Intrinsic
8887 @cindex Radix intrinsic
8888 @cindex intrinsics, Radix
8890 This intrinsic is not yet implemented.
8891 The name is, however, reserved as an intrinsic.
8892 Use @samp{EXTERNAL Radix} to use this name for an
8897 @node Rand Intrinsic
8898 @subsubsection Rand Intrinsic
8899 @cindex Rand intrinsic
8900 @cindex intrinsics, Rand
8908 Rand: @code{REAL(KIND=1)} function.
8911 @var{Flag}: @code{INTEGER}; OPTIONAL; scalar; INTENT(IN).
8914 Intrinsic groups: @code{unix}.
8919 Returns a uniform quasi-random number between 0 and 1.
8920 If @var{Flag} is 0, the next number in sequence is returned; if
8921 @var{Flag} is 1, the generator is restarted by calling @samp{srand(0)};
8922 if @var{Flag} has any other value, it is used as a new seed with
8925 @xref{SRand Intrinsic}.
8927 @emph{Note:} As typically implemented (by the routine of the same
8928 name in the C library), this random number generator is a very poor
8929 one, though the BSD and GNU libraries provide a much better
8930 implementation than the `traditional' one.
8931 On a different system you
8932 almost certainly want to use something better.
8936 @node Random_Number Intrinsic
8937 @subsubsection Random_Number Intrinsic
8938 @cindex Random_Number intrinsic
8939 @cindex intrinsics, Random_Number
8941 This intrinsic is not yet implemented.
8942 The name is, however, reserved as an intrinsic.
8943 Use @samp{EXTERNAL Random_Number} to use this name for an
8946 @node Random_Seed Intrinsic
8947 @subsubsection Random_Seed Intrinsic
8948 @cindex Random_Seed intrinsic
8949 @cindex intrinsics, Random_Seed
8951 This intrinsic is not yet implemented.
8952 The name is, however, reserved as an intrinsic.
8953 Use @samp{EXTERNAL Random_Seed} to use this name for an
8956 @node Range Intrinsic
8957 @subsubsection Range Intrinsic
8958 @cindex Range intrinsic
8959 @cindex intrinsics, Range
8961 This intrinsic is not yet implemented.
8962 The name is, however, reserved as an intrinsic.
8963 Use @samp{EXTERNAL Range} to use this name for an
8968 @node Real Intrinsic
8969 @subsubsection Real Intrinsic
8970 @cindex Real intrinsic
8971 @cindex intrinsics, Real
8979 Real: @code{REAL} function.
8980 The exact type is @samp{REAL(KIND=1)} when argument @var{A} is
8981 any type other than @code{COMPLEX}, or when it is @code{COMPLEX(KIND=1)}.
8982 When @var{A} is any @code{COMPLEX} type other than @code{COMPLEX(KIND=1)},
8983 this intrinsic is valid only when used as the argument to
8984 @code{REAL()}, as explained below.
8987 @var{A}: @code{INTEGER}, @code{REAL}, or @code{COMPLEX}; scalar; INTENT(IN).
8990 Intrinsic groups: (standard FORTRAN 77).
8995 Converts @var{A} to @code{REAL(KIND=1)}.
8997 Use of @code{REAL()} with a @code{COMPLEX} argument
8998 (other than @code{COMPLEX(KIND=1)}) is restricted to the following case:
9005 This expression converts the real part of A to
9006 @code{REAL(KIND=1)}.
9008 @xref{RealPart Intrinsic}, for information on a GNU Fortran
9009 intrinsic that extracts the real part of an arbitrary
9010 @code{COMPLEX} value.
9012 @xref{REAL() and AIMAG() of Complex}, for more information.
9016 @node RealPart Intrinsic
9017 @subsubsection RealPart Intrinsic
9018 @cindex RealPart intrinsic
9019 @cindex intrinsics, RealPart
9027 RealPart: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{Z}.
9030 @var{Z}: @code{COMPLEX}; scalar; INTENT(IN).
9033 Intrinsic groups: @code{gnu}.
9038 The real part of @var{Z} is returned, without conversion.
9040 @emph{Note:} The way to do this in standard Fortran 90
9041 is @samp{REAL(@var{Z})}.
9042 However, when, for example, @var{Z} is @code{COMPLEX(KIND=2)},
9043 @samp{REAL(@var{Z})} means something different for some compilers
9044 that are not true Fortran 90 compilers but offer some
9045 extensions standardized by Fortran 90 (such as the
9046 @code{DOUBLE COMPLEX} type, also known as @code{COMPLEX(KIND=2)}).
9048 The advantage of @code{REALPART()} is that, while not necessarily
9049 more or less portable than @code{REAL()}, it is more likely to
9050 cause a compiler that doesn't support it to produce a diagnostic
9051 than generate incorrect code.
9053 @xref{REAL() and AIMAG() of Complex}, for more information.
9057 @node Rename Intrinsic (subroutine)
9058 @subsubsection Rename Intrinsic (subroutine)
9059 @cindex Rename intrinsic
9060 @cindex intrinsics, Rename
9064 CALL Rename(@var{Path1}, @var{Path2}, @var{Status})
9068 @var{Path1}: @code{CHARACTER}; scalar; INTENT(IN).
9071 @var{Path2}: @code{CHARACTER}; scalar; INTENT(IN).
9074 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
9077 Intrinsic groups: @code{unix}.
9082 Renames the file @var{Path1} to @var{Path2}.
9083 A null character (@samp{CHAR(0)}) marks the end of
9084 the names in @var{Path1} and @var{Path2}---otherwise,
9085 trailing blanks in @var{Path1} and @var{Path2} are ignored.
9086 See @code{rename(2)}.
9087 If the @var{Status} argument is supplied, it contains
9088 0 on success or a non-zero error code upon return.
9090 Some non-GNU implementations of Fortran provide this intrinsic as
9091 only a function, not as a subroutine, or do not support the
9092 (optional) @var{Status} argument.
9094 For information on other intrinsics with the same name:
9095 @xref{Rename Intrinsic (function)}.
9099 @node Rename Intrinsic (function)
9100 @subsubsection Rename Intrinsic (function)
9101 @cindex Rename intrinsic
9102 @cindex intrinsics, Rename
9106 Rename(@var{Path1}, @var{Path2})
9110 Rename: @code{INTEGER(KIND=1)} function.
9113 @var{Path1}: @code{CHARACTER}; scalar; INTENT(IN).
9116 @var{Path2}: @code{CHARACTER}; scalar; INTENT(IN).
9119 Intrinsic groups: @code{badu77}.
9124 Renames the file @var{Path1} to @var{Path2}.
9125 A null character (@samp{CHAR(0)}) marks the end of
9126 the names in @var{Path1} and @var{Path2}---otherwise,
9127 trailing blanks in @var{Path1} and @var{Path2} are ignored.
9128 See @code{rename(2)}.
9129 Returns 0 on success or a non-zero error code.
9131 Due to the side effects performed by this intrinsic, the function
9132 form is not recommended.
9134 For information on other intrinsics with the same name:
9135 @xref{Rename Intrinsic (subroutine)}.
9139 @node Repeat Intrinsic
9140 @subsubsection Repeat Intrinsic
9141 @cindex Repeat intrinsic
9142 @cindex intrinsics, Repeat
9144 This intrinsic is not yet implemented.
9145 The name is, however, reserved as an intrinsic.
9146 Use @samp{EXTERNAL Repeat} to use this name for an
9149 @node Reshape Intrinsic
9150 @subsubsection Reshape Intrinsic
9151 @cindex Reshape intrinsic
9152 @cindex intrinsics, Reshape
9154 This intrinsic is not yet implemented.
9155 The name is, however, reserved as an intrinsic.
9156 Use @samp{EXTERNAL Reshape} to use this name for an
9159 @node RRSpacing Intrinsic
9160 @subsubsection RRSpacing Intrinsic
9161 @cindex RRSpacing intrinsic
9162 @cindex intrinsics, RRSpacing
9164 This intrinsic is not yet implemented.
9165 The name is, however, reserved as an intrinsic.
9166 Use @samp{EXTERNAL RRSpacing} to use this name for an
9171 @node RShift Intrinsic
9172 @subsubsection RShift Intrinsic
9173 @cindex RShift intrinsic
9174 @cindex intrinsics, RShift
9178 RShift(@var{I}, @var{Shift})
9182 RShift: @code{INTEGER} function, the @samp{KIND=} value of the type being that of argument @var{I}.
9185 @var{I}: @code{INTEGER}; scalar; INTENT(IN).
9188 @var{Shift}: @code{INTEGER}; scalar; INTENT(IN).
9191 Intrinsic groups: @code{f2c}.
9196 Returns @var{I} shifted to the right
9199 Although similar to the expression
9200 @samp{@var{I}/(2**@var{Shift})}, there
9201 are important differences.
9202 For example, the sign of the result is
9205 Currently this intrinsic is defined assuming
9206 the underlying representation of @var{I}
9207 is as a two's-complement integer.
9208 It is unclear at this point whether that
9209 definition will apply when a different
9210 representation is involved.
9212 @xref{RShift Intrinsic}, for the inverse of this function.
9214 @xref{IShft Intrinsic}, for information
9215 on a more widely available right-shifting
9216 intrinsic that is also more precisely defined.
9220 @node Scale Intrinsic
9221 @subsubsection Scale Intrinsic
9222 @cindex Scale intrinsic
9223 @cindex intrinsics, Scale
9225 This intrinsic is not yet implemented.
9226 The name is, however, reserved as an intrinsic.
9227 Use @samp{EXTERNAL Scale} to use this name for an
9230 @node Scan Intrinsic
9231 @subsubsection Scan Intrinsic
9232 @cindex Scan intrinsic
9233 @cindex intrinsics, Scan
9235 This intrinsic is not yet implemented.
9236 The name is, however, reserved as an intrinsic.
9237 Use @samp{EXTERNAL Scan} to use this name for an
9242 @node Secnds Intrinsic
9243 @subsubsection Secnds Intrinsic
9244 @cindex Secnds intrinsic
9245 @cindex intrinsics, Secnds
9253 Secnds: @code{REAL(KIND=1)} function.
9256 @var{T}: @code{REAL(KIND=1)}; scalar; INTENT(IN).
9259 Intrinsic groups: @code{vxt}.
9264 Returns the local time in seconds since midnight minus the value
9267 @cindex wraparound, timings
9268 @cindex limits, timings
9269 This values returned by this intrinsic
9270 become numerically less than previous values
9271 (they wrap around) during a single run of the
9272 compiler program, under normal circumstances
9273 (such as running through the midnight hour).
9277 @node Second Intrinsic (function)
9278 @subsubsection Second Intrinsic (function)
9279 @cindex Second intrinsic
9280 @cindex intrinsics, Second
9288 Second: @code{REAL(KIND=1)} function.
9291 Intrinsic groups: @code{unix}.
9296 Returns the process's runtime in seconds---the same value as the
9297 UNIX function @code{etime} returns.
9299 @cindex wraparound, timings
9300 @cindex limits, timings
9301 On some systems, the underlying timings are represented
9302 using types with sufficiently small limits that overflows
9303 (wraparounds) are possible, such as 32-bit types.
9304 Therefore, the values returned by this intrinsic
9305 might be, or become, negative,
9306 or numerically less than previous values,
9307 during a single run of the compiled program.
9309 For information on other intrinsics with the same name:
9310 @xref{Second Intrinsic (subroutine)}.
9312 @node Second Intrinsic (subroutine)
9313 @subsubsection Second Intrinsic (subroutine)
9314 @cindex Second intrinsic
9315 @cindex intrinsics, Second
9319 CALL Second(@var{Seconds})
9323 @var{Seconds}: @code{REAL}; scalar; INTENT(OUT).
9326 Intrinsic groups: @code{unix}.
9331 Returns the process's runtime in seconds in @var{Seconds}---the same value
9332 as the UNIX function @code{etime} returns.
9334 @cindex wraparound, timings
9335 @cindex limits, timings
9336 On some systems, the underlying timings are represented
9337 using types with sufficiently small limits that overflows
9338 (wraparounds) are possible, such as 32-bit types.
9339 Therefore, the values returned by this intrinsic
9340 might be, or become, negative,
9341 or numerically less than previous values,
9342 during a single run of the compiled program.
9344 This routine is known from Cray Fortran. @xref{CPU_Time Intrinsic},
9345 for a standard equivalent.
9347 For information on other intrinsics with the same name:
9348 @xref{Second Intrinsic (function)}.
9352 @node Selected_Int_Kind Intrinsic
9353 @subsubsection Selected_Int_Kind Intrinsic
9354 @cindex Selected_Int_Kind intrinsic
9355 @cindex intrinsics, Selected_Int_Kind
9357 This intrinsic is not yet implemented.
9358 The name is, however, reserved as an intrinsic.
9359 Use @samp{EXTERNAL Selected_Int_Kind} to use this name for an
9362 @node Selected_Real_Kind Intrinsic
9363 @subsubsection Selected_Real_Kind Intrinsic
9364 @cindex Selected_Real_Kind intrinsic
9365 @cindex intrinsics, Selected_Real_Kind
9367 This intrinsic is not yet implemented.
9368 The name is, however, reserved as an intrinsic.
9369 Use @samp{EXTERNAL Selected_Real_Kind} to use this name for an
9372 @node Set_Exponent Intrinsic
9373 @subsubsection Set_Exponent Intrinsic
9374 @cindex Set_Exponent intrinsic
9375 @cindex intrinsics, Set_Exponent
9377 This intrinsic is not yet implemented.
9378 The name is, however, reserved as an intrinsic.
9379 Use @samp{EXTERNAL Set_Exponent} to use this name for an
9382 @node Shape Intrinsic
9383 @subsubsection Shape Intrinsic
9384 @cindex Shape intrinsic
9385 @cindex intrinsics, Shape
9387 This intrinsic is not yet implemented.
9388 The name is, however, reserved as an intrinsic.
9389 Use @samp{EXTERNAL Shape} to use this name for an
9394 @node Short Intrinsic
9395 @subsubsection Short Intrinsic
9396 @cindex Short intrinsic
9397 @cindex intrinsics, Short
9405 Short: @code{INTEGER(KIND=6)} function.
9408 @var{A}: @code{INTEGER}; scalar; INTENT(IN).
9411 Intrinsic groups: @code{unix}.
9416 Returns @var{A} with the fractional portion of its
9417 magnitude truncated and its sign preserved, converted
9418 to type @code{INTEGER(KIND=6)}.
9420 If @var{A} is type @code{COMPLEX}, its real part
9421 is truncated and converted, and its imaginary part is disgregarded.
9423 @xref{Int Intrinsic}.
9425 The precise meaning of this intrinsic might change
9426 in a future version of the GNU Fortran language,
9427 as more is learned about how it is used.
9431 @node Sign Intrinsic
9432 @subsubsection Sign Intrinsic
9433 @cindex Sign intrinsic
9434 @cindex intrinsics, Sign
9438 Sign(@var{A}, @var{B})
9442 Sign: @code{INTEGER} or @code{REAL} function, the exact type being the result of cross-promoting the
9443 types of all the arguments.
9446 @var{A}: @code{INTEGER} or @code{REAL}; scalar; INTENT(IN).
9449 @var{B}: @code{INTEGER} or @code{REAL}; scalar; INTENT(IN).
9452 Intrinsic groups: (standard FORTRAN 77).
9457 Returns @samp{ABS(@var{A})*@var{s}}, where
9458 @var{s} is +1 if @samp{@var{B}.GE.0},
9461 @xref{Abs Intrinsic}, for the function that returns
9462 the magnitude of a value.
9466 @node Signal Intrinsic (subroutine)
9467 @subsubsection Signal Intrinsic (subroutine)
9468 @cindex Signal intrinsic
9469 @cindex intrinsics, Signal
9473 CALL Signal(@var{Number}, @var{Handler}, @var{Status})
9477 @var{Number}: @code{INTEGER}; scalar; INTENT(IN).
9480 @var{Handler}: Signal handler (@code{INTEGER FUNCTION} or @code{SUBROUTINE})
9481 or dummy/global @code{INTEGER(KIND=1)} scalar.
9484 @var{Status}: @code{INTEGER(KIND=7)}; OPTIONAL; scalar; INTENT(OUT).
9487 Intrinsic groups: @code{unix}.
9492 If @var{Handler} is a an @code{EXTERNAL} routine, arranges for it to be
9493 invoked with a single integer argument (of system-dependent length)
9494 when signal @var{Number} occurs.
9495 If @var{Handler} is an integer, it can be
9496 used to turn off handling of signal @var{Number} or revert to its default
9498 See @code{signal(2)}.
9500 Note that @var{Handler} will be called using C conventions,
9501 so the value of its argument in Fortran terms
9502 Fortran terms is obtained by applying @code{%LOC()} (or @var{LOC()}) to it.
9504 The value returned by @code{signal(2)} is written to @var{Status}, if
9505 that argument is supplied.
9506 Otherwise the return value is ignored.
9508 Some non-GNU implementations of Fortran provide this intrinsic as
9509 only a function, not as a subroutine, or do not support the
9510 (optional) @var{Status} argument.
9512 @emph{Warning:} Use of the @code{libf2c} run-time library function
9513 @samp{signal_} directly
9514 (such as via @samp{EXTERNAL SIGNAL})
9515 requires use of the @code{%VAL()} construct
9516 to pass an @code{INTEGER} value
9517 (such as @samp{SIG_IGN} or @samp{SIG_DFL})
9518 for the @var{Handler} argument.
9520 However, while @samp{CALL SIGNAL(@var{signum}, %VAL(SIG_IGN))}
9521 works when @samp{SIGNAL} is treated as an external procedure
9522 (and resolves, at link time, to @code{libf2c}'s @samp{signal_} routine),
9523 this construct is not valid when @samp{SIGNAL} is recognized
9524 as the intrinsic of that name.
9526 Therefore, for maximum portability and reliability,
9527 code such references to the @samp{SIGNAL} facility as follows:
9532 CALL SIGNAL(@var{signum}, SIG_IGN)
9535 @code{g77} will compile such a call correctly,
9536 while other compilers will generally either do so as well
9537 or reject the @samp{INTRINSIC SIGNAL} statement via a diagnostic,
9538 allowing you to take appropriate action.
9540 For information on other intrinsics with the same name:
9541 @xref{Signal Intrinsic (function)}.
9545 @node Signal Intrinsic (function)
9546 @subsubsection Signal Intrinsic (function)
9547 @cindex Signal intrinsic
9548 @cindex intrinsics, Signal
9552 Signal(@var{Number}, @var{Handler})
9556 Signal: @code{INTEGER(KIND=7)} function.
9559 @var{Number}: @code{INTEGER}; scalar; INTENT(IN).
9562 @var{Handler}: Signal handler (@code{INTEGER FUNCTION} or @code{SUBROUTINE})
9563 or dummy/global @code{INTEGER(KIND=1)} scalar.
9566 Intrinsic groups: @code{badu77}.
9571 If @var{Handler} is a an @code{EXTERNAL} routine, arranges for it to be
9572 invoked with a single integer argument (of system-dependent length)
9573 when signal @var{Number} occurs.
9574 If @var{Handler} is an integer, it can be
9575 used to turn off handling of signal @var{Number} or revert to its default
9577 See @code{signal(2)}.
9579 Note that @var{Handler} will be called using C conventions,
9580 so the value of its argument in Fortran terms
9581 is obtained by applying @code{%LOC()} (or @var{LOC()}) to it.
9583 The value returned by @code{signal(2)} is returned.
9585 Due to the side effects performed by this intrinsic, the function
9586 form is not recommended.
9588 @emph{Warning:} If the returned value is stored in
9589 an @code{INTEGER(KIND=1)} (default @code{INTEGER}) argument,
9590 truncation of the original return value occurs on some systems
9591 (such as Alphas, which have 64-bit pointers but 32-bit default integers),
9592 with no warning issued by @code{g77} under normal circumstances.
9594 Therefore, the following code fragment might silently fail on
9600 RTN = SIGNAL(@var{signum}, MYHNDL)
9602 ! Restore original handler:
9603 RTN = SIGNAL(@var{signum}, RTN)
9606 The reason for the failure is that @samp{RTN} might not hold
9607 all the information on the original handler for the signal,
9608 thus restoring an invalid handler.
9609 This bug could manifest itself as a spurious run-time failure
9610 at an arbitrary point later during the program's execution,
9613 @emph{Warning:} Use of the @code{libf2c} run-time library function
9614 @samp{signal_} directly
9615 (such as via @samp{EXTERNAL SIGNAL})
9616 requires use of the @code{%VAL()} construct
9617 to pass an @code{INTEGER} value
9618 (such as @samp{SIG_IGN} or @samp{SIG_DFL})
9619 for the @var{Handler} argument.
9621 However, while @samp{RTN = SIGNAL(@var{signum}, %VAL(SIG_IGN))}
9622 works when @samp{SIGNAL} is treated as an external procedure
9623 (and resolves, at link time, to @code{libf2c}'s @samp{signal_} routine),
9624 this construct is not valid when @samp{SIGNAL} is recognized
9625 as the intrinsic of that name.
9627 Therefore, for maximum portability and reliability,
9628 code such references to the @samp{SIGNAL} facility as follows:
9633 RTN = SIGNAL(@var{signum}, SIG_IGN)
9636 @code{g77} will compile such a call correctly,
9637 while other compilers will generally either do so as well
9638 or reject the @samp{INTRINSIC SIGNAL} statement via a diagnostic,
9639 allowing you to take appropriate action.
9641 For information on other intrinsics with the same name:
9642 @xref{Signal Intrinsic (subroutine)}.
9647 @subsubsection Sin Intrinsic
9648 @cindex Sin intrinsic
9649 @cindex intrinsics, Sin
9657 Sin: @code{REAL} or @code{COMPLEX} function, the exact type being that of argument @var{X}.
9660 @var{X}: @code{REAL} or @code{COMPLEX}; scalar; INTENT(IN).
9663 Intrinsic groups: (standard FORTRAN 77).
9668 Returns the sine of @var{X}, an angle measured
9671 @xref{ASin Intrinsic}, for the inverse of this function.
9675 @node SinD Intrinsic
9676 @subsubsection SinD Intrinsic
9677 @cindex SinD intrinsic
9678 @cindex intrinsics, SinD
9680 This intrinsic is not yet implemented.
9681 The name is, however, reserved as an intrinsic.
9682 Use @samp{EXTERNAL SinD} to use this name for an
9687 @node SinH Intrinsic
9688 @subsubsection SinH Intrinsic
9689 @cindex SinH intrinsic
9690 @cindex intrinsics, SinH
9698 SinH: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{X}.
9701 @var{X}: @code{REAL}; scalar; INTENT(IN).
9704 Intrinsic groups: (standard FORTRAN 77).
9709 Returns the hyperbolic sine of @var{X}.
9713 @node Sleep Intrinsic
9714 @subsubsection Sleep Intrinsic
9715 @cindex Sleep intrinsic
9716 @cindex intrinsics, Sleep
9720 CALL Sleep(@var{Seconds})
9724 @var{Seconds}: @code{INTEGER(KIND=1)}; scalar; INTENT(IN).
9727 Intrinsic groups: @code{unix}.
9732 Causes the process to pause for @var{Seconds} seconds.
9733 See @code{sleep(2)}.
9737 @node Sngl Intrinsic
9738 @subsubsection Sngl Intrinsic
9739 @cindex Sngl intrinsic
9740 @cindex intrinsics, Sngl
9748 Sngl: @code{REAL(KIND=1)} function.
9751 @var{A}: @code{REAL(KIND=2)}; scalar; INTENT(IN).
9754 Intrinsic groups: (standard FORTRAN 77).
9759 Archaic form of @code{REAL()} that is specific
9760 to one type for @var{A}.
9761 @xref{Real Intrinsic}.
9765 @node SnglQ Intrinsic
9766 @subsubsection SnglQ Intrinsic
9767 @cindex SnglQ intrinsic
9768 @cindex intrinsics, SnglQ
9770 This intrinsic is not yet implemented.
9771 The name is, however, reserved as an intrinsic.
9772 Use @samp{EXTERNAL SnglQ} to use this name for an
9777 @node Spacing Intrinsic
9778 @subsubsection Spacing Intrinsic
9779 @cindex Spacing intrinsic
9780 @cindex intrinsics, Spacing
9782 This intrinsic is not yet implemented.
9783 The name is, however, reserved as an intrinsic.
9784 Use @samp{EXTERNAL Spacing} to use this name for an
9787 @node Spread Intrinsic
9788 @subsubsection Spread Intrinsic
9789 @cindex Spread intrinsic
9790 @cindex intrinsics, Spread
9792 This intrinsic is not yet implemented.
9793 The name is, however, reserved as an intrinsic.
9794 Use @samp{EXTERNAL Spread} to use this name for an
9799 @node SqRt Intrinsic
9800 @subsubsection SqRt Intrinsic
9801 @cindex SqRt intrinsic
9802 @cindex intrinsics, SqRt
9810 SqRt: @code{REAL} or @code{COMPLEX} function, the exact type being that of argument @var{X}.
9813 @var{X}: @code{REAL} or @code{COMPLEX}; scalar; INTENT(IN).
9816 Intrinsic groups: (standard FORTRAN 77).
9821 Returns the square root of @var{X}, which must
9824 To calculate and represent the square root of a negative
9825 number, complex arithmetic must be used.
9826 For example, @samp{SQRT(COMPLEX(@var{X}))}.
9828 The inverse of this function is @samp{SQRT(@var{X}) * SQRT(@var{X})}.
9832 @node SRand Intrinsic
9833 @subsubsection SRand Intrinsic
9834 @cindex SRand intrinsic
9835 @cindex intrinsics, SRand
9839 CALL SRand(@var{Seed})
9843 @var{Seed}: @code{INTEGER}; scalar; INTENT(IN).
9846 Intrinsic groups: @code{unix}.
9851 Reinitialises the generator with the seed in @var{Seed}.
9852 @xref{IRand Intrinsic}.
9853 @xref{Rand Intrinsic}.
9855 @node Stat Intrinsic (subroutine)
9856 @subsubsection Stat Intrinsic (subroutine)
9857 @cindex Stat intrinsic
9858 @cindex intrinsics, Stat
9862 CALL Stat(@var{File}, @var{SArray}, @var{Status})
9866 @var{File}: @code{CHARACTER}; scalar; INTENT(IN).
9869 @var{SArray}: @code{INTEGER(KIND=1)}; DIMENSION(13); INTENT(OUT).
9872 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
9875 Intrinsic groups: @code{unix}.
9880 Obtains data about the given file @var{File} and places them in the array
9882 A null character (@samp{CHAR(0)}) marks the end of
9883 the name in @var{File}---otherwise,
9884 trailing blanks in @var{File} are ignored.
9885 The values in this array are extracted from the
9886 @code{stat} structure as returned by @code{fstat(2)} q.v., as follows:
9908 ID of device containing directory entry for file
9909 (0 if not available)
9918 Last modification time
9921 Last file status change time
9924 Preferred I/O block size (-1 if not available)
9927 Number of blocks allocated (-1 if not available)
9930 Not all these elements are relevant on all systems.
9931 If an element is not relevant, it is returned as 0.
9933 If the @var{Status} argument is supplied, it contains
9934 0 on success or a non-zero error code upon return.
9936 Some non-GNU implementations of Fortran provide this intrinsic as
9937 only a function, not as a subroutine, or do not support the
9938 (optional) @var{Status} argument.
9940 For information on other intrinsics with the same name:
9941 @xref{Stat Intrinsic (function)}.
9943 @node Stat Intrinsic (function)
9944 @subsubsection Stat Intrinsic (function)
9945 @cindex Stat intrinsic
9946 @cindex intrinsics, Stat
9950 Stat(@var{File}, @var{SArray})
9954 Stat: @code{INTEGER(KIND=1)} function.
9957 @var{File}: @code{CHARACTER}; scalar; INTENT(IN).
9960 @var{SArray}: @code{INTEGER(KIND=1)}; DIMENSION(13); INTENT(OUT).
9963 Intrinsic groups: @code{unix}.
9968 Obtains data about the given file @var{File} and places them in the array
9970 A null character (@samp{CHAR(0)}) marks the end of
9971 the name in @var{File}---otherwise,
9972 trailing blanks in @var{File} are ignored.
9973 The values in this array are extracted from the
9974 @code{stat} structure as returned by @code{fstat(2)} q.v., as follows:
9996 ID of device containing directory entry for file
9997 (0 if not available)
10006 Last modification time
10009 Last file status change time
10012 Preferred I/O block size (-1 if not available)
10015 Number of blocks allocated (-1 if not available)
10018 Not all these elements are relevant on all systems.
10019 If an element is not relevant, it is returned as 0.
10021 Returns 0 on success or a non-zero error code.
10023 For information on other intrinsics with the same name:
10024 @xref{Stat Intrinsic (subroutine)}.
10028 @node Sum Intrinsic
10029 @subsubsection Sum Intrinsic
10030 @cindex Sum intrinsic
10031 @cindex intrinsics, Sum
10033 This intrinsic is not yet implemented.
10034 The name is, however, reserved as an intrinsic.
10035 Use @samp{EXTERNAL Sum} to use this name for an
10036 external procedure.
10040 @node SymLnk Intrinsic (subroutine)
10041 @subsubsection SymLnk Intrinsic (subroutine)
10042 @cindex SymLnk intrinsic
10043 @cindex intrinsics, SymLnk
10047 CALL SymLnk(@var{Path1}, @var{Path2}, @var{Status})
10051 @var{Path1}: @code{CHARACTER}; scalar; INTENT(IN).
10054 @var{Path2}: @code{CHARACTER}; scalar; INTENT(IN).
10057 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
10060 Intrinsic groups: @code{unix}.
10065 Makes a symbolic link from file @var{Path1} to @var{Path2}.
10066 A null character (@samp{CHAR(0)}) marks the end of
10067 the names in @var{Path1} and @var{Path2}---otherwise,
10068 trailing blanks in @var{Path1} and @var{Path2} are ignored.
10069 If the @var{Status} argument is supplied, it contains
10070 0 on success or a non-zero error code upon return
10071 (@code{ENOSYS} if the system does not provide @code{symlink(2)}).
10073 Some non-GNU implementations of Fortran provide this intrinsic as
10074 only a function, not as a subroutine, or do not support the
10075 (optional) @var{Status} argument.
10077 For information on other intrinsics with the same name:
10078 @xref{SymLnk Intrinsic (function)}.
10081 @ifset familyBADU77
10082 @node SymLnk Intrinsic (function)
10083 @subsubsection SymLnk Intrinsic (function)
10084 @cindex SymLnk intrinsic
10085 @cindex intrinsics, SymLnk
10089 SymLnk(@var{Path1}, @var{Path2})
10093 SymLnk: @code{INTEGER(KIND=1)} function.
10096 @var{Path1}: @code{CHARACTER}; scalar; INTENT(IN).
10099 @var{Path2}: @code{CHARACTER}; scalar; INTENT(IN).
10102 Intrinsic groups: @code{badu77}.
10107 Makes a symbolic link from file @var{Path1} to @var{Path2}.
10108 A null character (@samp{CHAR(0)}) marks the end of
10109 the names in @var{Path1} and @var{Path2}---otherwise,
10110 trailing blanks in @var{Path1} and @var{Path2} are ignored.
10111 Returns 0 on success or a non-zero error code
10112 (@code{ENOSYS} if the system does not provide @code{symlink(2)}).
10114 Due to the side effects performed by this intrinsic, the function
10115 form is not recommended.
10117 For information on other intrinsics with the same name:
10118 @xref{SymLnk Intrinsic (subroutine)}.
10122 @node System Intrinsic (subroutine)
10123 @subsubsection System Intrinsic (subroutine)
10124 @cindex System intrinsic
10125 @cindex intrinsics, System
10129 CALL System(@var{Command}, @var{Status})
10133 @var{Command}: @code{CHARACTER}; scalar; INTENT(IN).
10136 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
10139 Intrinsic groups: @code{unix}.
10144 Passes the command @var{Command} to a shell (see @code{system(3)}).
10145 If argument @var{Status} is present, it contains the value returned by
10146 @code{system(3)}, presumably 0 if the shell command succeeded.
10147 Note that which shell is used to invoke the command is system-dependent
10148 and environment-dependent.
10150 Some non-GNU implementations of Fortran provide this intrinsic as
10151 only a function, not as a subroutine, or do not support the
10152 (optional) @var{Status} argument.
10154 For information on other intrinsics with the same name:
10155 @xref{System Intrinsic (function)}.
10158 @ifset familyBADU77
10159 @node System Intrinsic (function)
10160 @subsubsection System Intrinsic (function)
10161 @cindex System intrinsic
10162 @cindex intrinsics, System
10166 System(@var{Command})
10170 System: @code{INTEGER(KIND=1)} function.
10173 @var{Command}: @code{CHARACTER}; scalar; INTENT(IN).
10176 Intrinsic groups: @code{badu77}.
10181 Passes the command @var{Command} to a shell (see @code{system(3)}).
10182 Returns the value returned by
10183 @code{system(3)}, presumably 0 if the shell command succeeded.
10184 Note that which shell is used to invoke the command is system-dependent
10185 and environment-dependent.
10187 Due to the side effects performed by this intrinsic, the function
10188 form is not recommended.
10189 However, the function form can be valid in cases where the
10190 actual side effects performed by the call are unimportant to
10193 For example, on a UNIX system, @samp{SAME = SYSTEM('cmp a b')}
10194 does not perform any side effects likely to be important to the
10195 program, so the programmer would not care if the actual system
10196 call (and invocation of @code{cmp}) was optimized away in a situation
10197 where the return value could be determined otherwise, or was not
10198 actually needed (@samp{SAME} not actually referenced after the
10199 sample assignment statement).
10201 For information on other intrinsics with the same name:
10202 @xref{System Intrinsic (subroutine)}.
10206 @node System_Clock Intrinsic
10207 @subsubsection System_Clock Intrinsic
10208 @cindex System_Clock intrinsic
10209 @cindex intrinsics, System_Clock
10213 CALL System_Clock(@var{Count}, @var{Rate}, @var{Max})
10217 @var{Count}: @code{INTEGER(KIND=1)}; scalar; INTENT(OUT).
10220 @var{Rate}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
10223 @var{Max}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
10226 Intrinsic groups: @code{f90}.
10231 Returns in @var{Count} the current value of the system clock; this is
10232 the value returned by the UNIX function @code{times(2)}
10233 in this implementation, but
10235 @var{Rate} is the number of clock ticks per second and
10236 @var{Max} is the maximum value this can take, which isn't very useful
10237 in this implementation since it's just the maximum C @code{unsigned
10240 @cindex wraparound, timings
10241 @cindex limits, timings
10242 On some systems, the underlying timings are represented
10243 using types with sufficiently small limits that overflows
10244 (wraparounds) are possible, such as 32-bit types.
10245 Therefore, the values returned by this intrinsic
10246 might be, or become, negative,
10247 or numerically less than previous values,
10248 during a single run of the compiled program.
10252 @node Tan Intrinsic
10253 @subsubsection Tan Intrinsic
10254 @cindex Tan intrinsic
10255 @cindex intrinsics, Tan
10263 Tan: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{X}.
10266 @var{X}: @code{REAL}; scalar; INTENT(IN).
10269 Intrinsic groups: (standard FORTRAN 77).
10274 Returns the tangent of @var{X}, an angle measured
10277 @xref{ATan Intrinsic}, for the inverse of this function.
10281 @node TanD Intrinsic
10282 @subsubsection TanD Intrinsic
10283 @cindex TanD intrinsic
10284 @cindex intrinsics, TanD
10286 This intrinsic is not yet implemented.
10287 The name is, however, reserved as an intrinsic.
10288 Use @samp{EXTERNAL TanD} to use this name for an
10289 external procedure.
10293 @node TanH Intrinsic
10294 @subsubsection TanH Intrinsic
10295 @cindex TanH intrinsic
10296 @cindex intrinsics, TanH
10304 TanH: @code{REAL} function, the @samp{KIND=} value of the type being that of argument @var{X}.
10307 @var{X}: @code{REAL}; scalar; INTENT(IN).
10310 Intrinsic groups: (standard FORTRAN 77).
10315 Returns the hyperbolic tangent of @var{X}.
10319 @node Time Intrinsic (UNIX)
10320 @subsubsection Time Intrinsic (UNIX)
10321 @cindex Time intrinsic
10322 @cindex intrinsics, Time
10330 Time: @code{INTEGER(KIND=1)} function.
10333 Intrinsic groups: @code{unix}.
10338 Returns the current time encoded as an integer
10339 (in the manner of the UNIX function @code{time(3)}).
10340 This value is suitable for passing to @code{CTIME},
10341 @code{GMTIME}, and @code{LTIME}.
10343 @cindex wraparound, timings
10344 @cindex limits, timings
10345 This intrinsic is not fully portable, such as to systems
10346 with 32-bit @code{INTEGER} types but supporting times
10347 wider than 32 bits.
10348 Therefore, the values returned by this intrinsic
10349 might be, or become, negative,
10350 or numerically less than previous values,
10351 during a single run of the compiled program.
10353 @xref{Time8 Intrinsic}, for information on a
10354 similar intrinsic that might be portable to more
10355 GNU Fortran implementations, though to fewer
10358 For information on other intrinsics with the same name:
10359 @xref{Time Intrinsic (VXT)}.
10363 @node Time Intrinsic (VXT)
10364 @subsubsection Time Intrinsic (VXT)
10365 @cindex Time intrinsic
10366 @cindex intrinsics, Time
10370 CALL Time(@var{Time})
10374 @var{Time}: @code{CHARACTER*8}; scalar; INTENT(OUT).
10377 Intrinsic groups: @code{vxt}.
10382 Returns in @var{Time} a character representation of the current time as
10383 obtained from @code{ctime(3)}.
10385 @cindex Y10K compliance
10386 @cindex Year 10000 compliance
10387 @cindex wraparound, Y10K
10388 @cindex limits, Y10K
10389 Programs making use of this intrinsic
10390 might not be Year 10000 (Y10K) compliant.
10391 For example, the date might appear,
10392 to such programs, to wrap around
10393 (change from a larger value to a smaller one)
10394 as of the Year 10000.
10396 @xref{FDate Intrinsic (subroutine)}, for an equivalent routine.
10398 For information on other intrinsics with the same name:
10399 @xref{Time Intrinsic (UNIX)}.
10403 @node Time8 Intrinsic
10404 @subsubsection Time8 Intrinsic
10405 @cindex Time8 intrinsic
10406 @cindex intrinsics, Time8
10414 Time8: @code{INTEGER(KIND=2)} function.
10417 Intrinsic groups: @code{unix}.
10422 Returns the current time encoded as a long integer
10423 (in the manner of the UNIX function @code{time(3)}).
10424 This value is suitable for passing to @code{CTIME},
10425 @code{GMTIME}, and @code{LTIME}.
10427 @cindex wraparound, timings
10428 @cindex limits, timings
10429 @emph{Warning:} this intrinsic does not increase the range
10430 of the timing values over that returned by @code{time(3)}.
10431 On a system with a 32-bit @code{time(3)},
10432 @code{TIME8} will return a 32-bit value,
10433 even though converted to an @samp{INTEGER(KIND=2)} value.
10434 That means overflows of the 32-bit value can still occur.
10435 Therefore, the values returned by this intrinsic
10436 might be, or become, negative,
10437 or numerically less than previous values,
10438 during a single run of the compiled program.
10440 No Fortran implementations other than GNU Fortran are
10441 known to support this intrinsic at the time of this
10443 @xref{Time Intrinsic (UNIX)}, for information on a
10444 similar intrinsic that might be portable to more Fortran
10445 compilers, though to fewer GNU Fortran implementations.
10449 @node Tiny Intrinsic
10450 @subsubsection Tiny Intrinsic
10451 @cindex Tiny intrinsic
10452 @cindex intrinsics, Tiny
10454 This intrinsic is not yet implemented.
10455 The name is, however, reserved as an intrinsic.
10456 Use @samp{EXTERNAL Tiny} to use this name for an
10457 external procedure.
10459 @node Transfer Intrinsic
10460 @subsubsection Transfer Intrinsic
10461 @cindex Transfer intrinsic
10462 @cindex intrinsics, Transfer
10464 This intrinsic is not yet implemented.
10465 The name is, however, reserved as an intrinsic.
10466 Use @samp{EXTERNAL Transfer} to use this name for an
10467 external procedure.
10469 @node Transpose Intrinsic
10470 @subsubsection Transpose Intrinsic
10471 @cindex Transpose intrinsic
10472 @cindex intrinsics, Transpose
10474 This intrinsic is not yet implemented.
10475 The name is, however, reserved as an intrinsic.
10476 Use @samp{EXTERNAL Transpose} to use this name for an
10477 external procedure.
10479 @node Trim Intrinsic
10480 @subsubsection Trim Intrinsic
10481 @cindex Trim intrinsic
10482 @cindex intrinsics, Trim
10484 This intrinsic is not yet implemented.
10485 The name is, however, reserved as an intrinsic.
10486 Use @samp{EXTERNAL Trim} to use this name for an
10487 external procedure.
10491 @node TtyNam Intrinsic (subroutine)
10492 @subsubsection TtyNam Intrinsic (subroutine)
10493 @cindex TtyNam intrinsic
10494 @cindex intrinsics, TtyNam
10498 CALL TtyNam(@var{Unit}, @var{Name})
10502 @var{Unit}: @code{INTEGER}; scalar; INTENT(IN).
10505 @var{Name}: @code{CHARACTER}; scalar; INTENT(OUT).
10508 Intrinsic groups: @code{unix}.
10513 Sets @var{Name} to the name of the terminal device open on logical unit
10514 @var{Unit} or to a blank string if @var{Unit} is not connected to a
10517 Some non-GNU implementations of Fortran provide this intrinsic as
10518 only a function, not as a subroutine.
10520 For information on other intrinsics with the same name:
10521 @xref{TtyNam Intrinsic (function)}.
10523 @node TtyNam Intrinsic (function)
10524 @subsubsection TtyNam Intrinsic (function)
10525 @cindex TtyNam intrinsic
10526 @cindex intrinsics, TtyNam
10534 TtyNam: @code{CHARACTER*(*)} function.
10537 @var{Unit}: @code{INTEGER}; scalar; INTENT(IN).
10540 Intrinsic groups: @code{unix}.
10545 Returns the name of the terminal device open on logical unit
10546 @var{Unit} or a blank string if @var{Unit} is not connected to a
10549 For information on other intrinsics with the same name:
10550 @xref{TtyNam Intrinsic (subroutine)}.
10554 @node UBound Intrinsic
10555 @subsubsection UBound Intrinsic
10556 @cindex UBound intrinsic
10557 @cindex intrinsics, UBound
10559 This intrinsic is not yet implemented.
10560 The name is, however, reserved as an intrinsic.
10561 Use @samp{EXTERNAL UBound} to use this name for an
10562 external procedure.
10566 @node UMask Intrinsic (subroutine)
10567 @subsubsection UMask Intrinsic (subroutine)
10568 @cindex UMask intrinsic
10569 @cindex intrinsics, UMask
10573 CALL UMask(@var{Mask}, @var{Old})
10577 @var{Mask}: @code{INTEGER}; scalar; INTENT(IN).
10580 @var{Old}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
10583 Intrinsic groups: @code{unix}.
10588 Sets the file creation mask to @var{Mask} and returns the old value in
10589 argument @var{Old} if it is supplied.
10590 See @code{umask(2)}.
10592 Some non-GNU implementations of Fortran provide this intrinsic as
10593 only a function, not as a subroutine.
10595 For information on other intrinsics with the same name:
10596 @xref{UMask Intrinsic (function)}.
10599 @ifset familyBADU77
10600 @node UMask Intrinsic (function)
10601 @subsubsection UMask Intrinsic (function)
10602 @cindex UMask intrinsic
10603 @cindex intrinsics, UMask
10611 UMask: @code{INTEGER(KIND=1)} function.
10614 @var{Mask}: @code{INTEGER}; scalar; INTENT(IN).
10617 Intrinsic groups: @code{badu77}.
10622 Sets the file creation mask to @var{Mask} and returns the old value.
10623 See @code{umask(2)}.
10625 Due to the side effects performed by this intrinsic, the function
10626 form is not recommended.
10628 For information on other intrinsics with the same name:
10629 @xref{UMask Intrinsic (subroutine)}.
10633 @node Unlink Intrinsic (subroutine)
10634 @subsubsection Unlink Intrinsic (subroutine)
10635 @cindex Unlink intrinsic
10636 @cindex intrinsics, Unlink
10640 CALL Unlink(@var{File}, @var{Status})
10644 @var{File}: @code{CHARACTER}; scalar; INTENT(IN).
10647 @var{Status}: @code{INTEGER(KIND=1)}; OPTIONAL; scalar; INTENT(OUT).
10650 Intrinsic groups: @code{unix}.
10655 Unlink the file @var{File}.
10656 A null character (@samp{CHAR(0)}) marks the end of
10657 the name in @var{File}---otherwise,
10658 trailing blanks in @var{File} are ignored.
10659 If the @var{Status} argument is supplied, it contains
10660 0 on success or a non-zero error code upon return.
10661 See @code{unlink(2)}.
10663 Some non-GNU implementations of Fortran provide this intrinsic as
10664 only a function, not as a subroutine, or do not support the
10665 (optional) @var{Status} argument.
10667 For information on other intrinsics with the same name:
10668 @xref{Unlink Intrinsic (function)}.
10671 @ifset familyBADU77
10672 @node Unlink Intrinsic (function)
10673 @subsubsection Unlink Intrinsic (function)
10674 @cindex Unlink intrinsic
10675 @cindex intrinsics, Unlink
10683 Unlink: @code{INTEGER(KIND=1)} function.
10686 @var{File}: @code{CHARACTER}; scalar; INTENT(IN).
10689 Intrinsic groups: @code{badu77}.
10694 Unlink the file @var{File}.
10695 A null character (@samp{CHAR(0)}) marks the end of
10696 the name in @var{File}---otherwise,
10697 trailing blanks in @var{File} are ignored.
10698 Returns 0 on success or a non-zero error code.
10699 See @code{unlink(2)}.
10701 Due to the side effects performed by this intrinsic, the function
10702 form is not recommended.
10704 For information on other intrinsics with the same name:
10705 @xref{Unlink Intrinsic (subroutine)}.
10709 @node Unpack Intrinsic
10710 @subsubsection Unpack Intrinsic
10711 @cindex Unpack intrinsic
10712 @cindex intrinsics, Unpack
10714 This intrinsic is not yet implemented.
10715 The name is, however, reserved as an intrinsic.
10716 Use @samp{EXTERNAL Unpack} to use this name for an
10717 external procedure.
10719 @node Verify Intrinsic
10720 @subsubsection Verify Intrinsic
10721 @cindex Verify intrinsic
10722 @cindex intrinsics, Verify
10724 This intrinsic is not yet implemented.
10725 The name is, however, reserved as an intrinsic.
10726 Use @samp{EXTERNAL Verify} to use this name for an
10727 external procedure.
10731 @node XOr Intrinsic
10732 @subsubsection XOr Intrinsic
10733 @cindex XOr intrinsic
10734 @cindex intrinsics, XOr
10738 XOr(@var{I}, @var{J})
10742 XOr: @code{INTEGER} or @code{LOGICAL} function, the exact type being the result of cross-promoting the
10743 types of all the arguments.
10746 @var{I}: @code{INTEGER} or @code{LOGICAL}; scalar; INTENT(IN).
10749 @var{J}: @code{INTEGER} or @code{LOGICAL}; scalar; INTENT(IN).
10752 Intrinsic groups: @code{f2c}.
10757 Returns value resulting from boolean exclusive-OR of
10758 pair of bits in each of @var{I} and @var{J}.
10760 @node ZAbs Intrinsic
10761 @subsubsection ZAbs Intrinsic
10762 @cindex ZAbs intrinsic
10763 @cindex intrinsics, ZAbs
10771 ZAbs: @code{REAL(KIND=2)} function.
10774 @var{A}: @code{COMPLEX(KIND=2)}; scalar; INTENT(IN).
10777 Intrinsic groups: @code{f2c}.
10782 Archaic form of @code{ABS()} that is specific
10783 to one type for @var{A}.
10784 @xref{Abs Intrinsic}.
10786 @node ZCos Intrinsic
10787 @subsubsection ZCos Intrinsic
10788 @cindex ZCos intrinsic
10789 @cindex intrinsics, ZCos
10797 ZCos: @code{COMPLEX(KIND=2)} function.
10800 @var{X}: @code{COMPLEX(KIND=2)}; scalar; INTENT(IN).
10803 Intrinsic groups: @code{f2c}.
10808 Archaic form of @code{COS()} that is specific
10809 to one type for @var{X}.
10810 @xref{Cos Intrinsic}.
10812 @node ZExp Intrinsic
10813 @subsubsection ZExp Intrinsic
10814 @cindex ZExp intrinsic
10815 @cindex intrinsics, ZExp
10823 ZExp: @code{COMPLEX(KIND=2)} function.
10826 @var{X}: @code{COMPLEX(KIND=2)}; scalar; INTENT(IN).
10829 Intrinsic groups: @code{f2c}.
10834 Archaic form of @code{EXP()} that is specific
10835 to one type for @var{X}.
10836 @xref{Exp Intrinsic}.
10840 @node ZExt Intrinsic
10841 @subsubsection ZExt Intrinsic
10842 @cindex ZExt intrinsic
10843 @cindex intrinsics, ZExt
10845 This intrinsic is not yet implemented.
10846 The name is, however, reserved as an intrinsic.
10847 Use @samp{EXTERNAL ZExt} to use this name for an
10848 external procedure.
10852 @node ZLog Intrinsic
10853 @subsubsection ZLog Intrinsic
10854 @cindex ZLog intrinsic
10855 @cindex intrinsics, ZLog
10863 ZLog: @code{COMPLEX(KIND=2)} function.
10866 @var{X}: @code{COMPLEX(KIND=2)}; scalar; INTENT(IN).
10869 Intrinsic groups: @code{f2c}.
10874 Archaic form of @code{LOG()} that is specific
10875 to one type for @var{X}.
10876 @xref{Log Intrinsic}.
10878 @node ZSin Intrinsic
10879 @subsubsection ZSin Intrinsic
10880 @cindex ZSin intrinsic
10881 @cindex intrinsics, ZSin
10889 ZSin: @code{COMPLEX(KIND=2)} function.
10892 @var{X}: @code{COMPLEX(KIND=2)}; scalar; INTENT(IN).
10895 Intrinsic groups: @code{f2c}.
10900 Archaic form of @code{SIN()} that is specific
10901 to one type for @var{X}.
10902 @xref{Sin Intrinsic}.
10904 @node ZSqRt Intrinsic
10905 @subsubsection ZSqRt Intrinsic
10906 @cindex ZSqRt intrinsic
10907 @cindex intrinsics, ZSqRt
10915 ZSqRt: @code{COMPLEX(KIND=2)} function.
10918 @var{X}: @code{COMPLEX(KIND=2)}; scalar; INTENT(IN).
10921 Intrinsic groups: @code{f2c}.
10926 Archaic form of @code{SQRT()} that is specific
10927 to one type for @var{X}.
10928 @xref{SqRt Intrinsic}.