Adjustr

Function Type:

Adjustr is a character intrinsic function.

Function Purpose:

The adjustr function takes a character argument, removes any trailing blanks and then adds them to the beginning of the character string.

Required Arguments:

adjustr(string)

String must be a character argument.

The function must output to a character variable.

Optional Arguments:

There are no optional arguments.

Results:

Let us say that the character variable word contains the following character string:
		'Five_trailing_spaces     '
and you make it an argument to the adjustr function like so:
		word = adjustr(word)
The variable string will then contain the following character string:
		'     Five_trailing_spaces'

For more information and examples see:

lecture twenty five

examples: charvr90.f

Up one level / Home


Written by Jason Wehr : jcw142@psu.edu and Maintained by John Mahaffy : jhm@cac.psu.edu