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

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

Contents


TRIM(3I)					       Last changed: 2-5-98

NAME    [Toc]    [Back]

     TRIM - Returns the	character argument with	trailing blank characters
     removed

SYNOPSIS    [Toc]    [Back]

     TRIM ([STRING=]string)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     The TRIM intrinsic	function removes trailing blank	characters from	its
     character argument.  If the input string contains trailing	blank
     characters, it returns the	string without the trailing blanks.  If	the
     string contains only blanks, it returns a zero-length string.  It
     accepts the following argument:

     string    Must be of type character and be	a scalar

     TRIM is a transformational	function.  The name of this intrinsic
     cannot be passed as an argument.

RETURN VALUES    [Toc]    [Back]

     The result	is a scalar entity of type character with a length that	is
     the length	of string without any trailing blank characters.  The value
     of	the result is the same as string except	that any trailing blanks
     have been removed.	 If string contains only blank characters, the
     result is a string	of 0 length.

EXAMPLES    [Toc]    [Back]

     Consider the following example of a TRIM function reference.  In this
     example, the carat	(^) represents a blank:

	  CHVAR	= TRIM(	'^W^O^R^D^^' )
	  PRINT	*,"CHVAR='",CHVAR,"'"

     This reference returns the	following result:

	  CHVAR='^W^O^R^D'

SEE ALSO    [Toc]    [Back]

      
      
     Intrinsic Procedures Reference Manual, publication	SR-2138, for the
     printed version of	this man page.
TRIM(3I)					       Last changed: 2-5-98

NAME    [Toc]    [Back]

     TRIM - Returns the	character argument with	trailing blank characters
     removed

SYNOPSIS    [Toc]    [Back]

     TRIM ([STRING=]string)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     The TRIM intrinsic	function removes trailing blank	characters from	its
     character argument.  If the input string contains trailing	blank
     characters, it returns the	string without the trailing blanks.  If	the
     string contains only blanks, it returns a zero-length string.  It
     accepts the following argument:

     string    Must be of type character and be	a scalar

     TRIM is a transformational	function.  The name of this intrinsic
     cannot be passed as an argument.

RETURN VALUES    [Toc]    [Back]

     The result	is a scalar entity of type character with a length that	is
     the length	of string without any trailing blank characters.  The value
     of	the result is the same as string except	that any trailing blanks
     have been removed.	 If string contains only blank characters, the
     result is a string	of 0 length.

EXAMPLES    [Toc]    [Back]

     Consider the following example of a TRIM function reference.  In this
     example, the carat	(^) represents a blank:

	  CHVAR	= TRIM(	'^W^O^R^D^^' )
	  PRINT	*,"CHVAR='",CHVAR,"'"

     This reference returns the	following result:

	  CHVAR='^W^O^R^D'

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
len_trim IRIX Returns the length of the character argument without counting trailing blank characters
trimlen IRIX Returns the length of a character argument without counting trailing blanks
isblank OpenBSD blank-space character test
isblank NetBSD blank-space character test
pxfgetarg IRIX Returns a command-line argument
ceiling IRIX Returns the least integer greater than or equal to its argument
tiny IRIX Returns the smallest positive value for a real argument
spacing IRIX Returns the absolute spacing of real model numbers near the argument value
fraction IRIX Returns the fractional part of the numeric model representation of the argument value
rrspacing IRIX Returns the reciprocal of the relative spacing of numeric model numbers near the argument value
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service