*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> f90/lge (3)              
Title
Content
Arch
Section
 

Contents


STRCMP(3F)							    STRCMP(3F)


NAME    [Toc]    [Back]

     strcmp: lge, lgt, lle, llt	- FORTRAN string comparison intrinsic
     functions

SYNOPSIS    [Toc]    [Back]

     character*N a1, a2
     logical l

     l = lge(a1, a2)
     l = lgt(a1, a2)
     l = lle(a1, a2)
     l = llt(a1, a2)

DESCRIPTION    [Toc]    [Back]

     These functions return .TRUE. if the inequality holds and .FALSE.
     otherwise.	 They return the result	type logical*2 if the $log2 compile
     option is in effect; otherwise, the result	type is	logical*4.






































									Page 1



LGE(3I)						       Last changed: 1-6-98

NAME    [Toc]    [Back]

     LGE, LGT, LLE, LLT	- Compares strings lexically

SYNOPSIS    [Toc]    [Back]

     LGE ([STRING_A=]string_a, [STRING_B=]string_b)

     LGT ([STRING_A=]string_a, [STRING_B=]string_b)

     LLE ([STRING_A=]string_a, [STRING_B=]string_b)

     LLT ([STRING_A=]string_a, [STRING_B=]string_b)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     Each of these type	logical	functions takes	two character string
     arguments and returns a logical value.  string_a and string_b are
     compared according	to the ASCII collating sequence, and the resulting
     true or false value is returned.

     string_a and string_b    Must be of type default character

     The defining equation for each function is	as follows:

     * For LGE,	logic =	a  is greater than or equal to a
			 1				2
     * For LGT,	logic =	a  is greater than a
			 1		    2
     * For LLE,	logic =	a  is less than	or equal to a
			 1			     2
     * For LLT,	logic =	a  is less than	a
			 1		 2
     LGE, LGT, LLE, and	LLT are	elemental functions.  The names	of these
     intrinsics	cannot be passed as arguments.

RETURN VALUES    [Toc]    [Back]

     If	the strings are	of unequal length, the comparison is made as if	the
     shorter string were extended on the right with blanks to the length of
     the longer	string.	 The return value of each intrinsic is as follows:

     * LGE.  The result	is true	if the strings are equal or if string_a
       follows string_b	in the ASCII collating sequence; otherwise, the
       result is false.	 Note that the result is true if both string_a and
       string_b	are of equal length; this includes zero-length strings.

     * LGT.  The result	is true	if string_a follows string_b in	the ASCII
       collating sequence; otherwise, it is false.  The	result is false	if
       both string_a and string_b are of zero length.

     * LLE.  The result	is true	if the strings are equal or if string_a
       precedes	string_b in the	ASCII collating	sequence; otherwise, it	is
       false.  Note that the result is true if both string_a and string_b
       are of equal length; this includes zero-length strings.

     * LLT.  The result	is true	if string_a precedes string_b in the ASCII
       collating sequence; otherwise, it is false.  The	result is false	if
       both string_a and string_b are of zero length.

SEE ALSO    [Toc]    [Back]

      
      
     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.

LGE(3I)						       Last changed: 1-6-98

NAME    [Toc]    [Back]

     LGE, LGT, LLE, LLT	- Compares strings lexically

SYNOPSIS    [Toc]    [Back]

     LGE ([STRING_A=]string_a, [STRING_B=]string_b)

     LGT ([STRING_A=]string_a, [STRING_B=]string_b)

     LLE ([STRING_A=]string_a, [STRING_B=]string_b)

     LLT ([STRING_A=]string_a, [STRING_B=]string_b)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     Each of these type	logical	functions takes	two character string
     arguments and returns a logical value.  string_a and string_b are
     compared according	to the ASCII collating sequence, and the resulting
     true or false value is returned.

     string_a and string_b    Must be of type default character

     The defining equation for each function is	as follows:

     * For LGE,	logic =	a  is greater than or equal to a
			 1				2
     * For LGT,	logic =	a  is greater than a
			 1		    2
     * For LLE,	logic =	a  is less than	or equal to a
			 1			     2
     * For LLT,	logic =	a  is less than	a
			 1		 2
     LGE, LGT, LLE, and	LLT are	elemental functions.  The names	of these
     intrinsics	cannot be passed as arguments.

RETURN VALUES    [Toc]    [Back]

     If	the strings are	of unequal length, the comparison is made as if	the
     shorter string were extended on the right with blanks to the length of
     the longer	string.	 The return value of each intrinsic is as follows:

     * LGE.  The result	is true	if the strings are equal or if string_a
       follows string_b	in the ASCII collating sequence; otherwise, the
       result is false.	 Note that the result is true if both string_a and
       string_b	are of equal length; this includes zero-length strings.

     * LGT.  The result	is true	if string_a follows string_b in	the ASCII
       collating sequence; otherwise, it is false.  The	result is false	if
       both string_a and string_b are of zero length.

     * LLE.  The result	is true	if the strings are equal or if string_a
       precedes	string_b in the	ASCII collating	sequence; otherwise, it	is
       false.  Note that the result is true if both string_a and string_b
       are of equal length; this includes zero-length strings.

     * LLT.  The result	is true	if string_a precedes string_b in the ASCII
       collating sequence; otherwise, it is false.  The	result is false	if
       both string_a and string_b are of zero length.

SEE ALSO    [Toc]    [Back]

      
      
     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.

[ Back ]
 Similar pages
Name OS Title
mod IRIX FORTRAN remaindering intrinsic functions
dim IRIX FORTRAN positive difference intrinsic functions
dprod IRIX FORTRAN double precision and quad precision product intrinsic functions
alog IRIX FORTRAN natural logarithm intrinsic function
conjg IRIX FORTRAN complex conjugate intrinsic function
sign IRIX FORTRAN transfer-of-sign intrinsic function
aint IRIX FORTRAN integer part intrinsic function
conjg IRIX FORTRAN complex conjugate intrinsic function
models IRIX Describes mathematical representation models for CF90 and MIPSpro 7 Fortran 90 compiler intrinsic procedures
builtins Tru64 Header file declaring functions that are unconditionally intrinsic.
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service