2.9BSD/usr/man/cat3/string.3f


STRING(3F)          UNIX Programmer's Manual           STRING(3F)

NAME
     string - Fortran function for string concatenation

SYNTAX
     string(number, string1, string2, ....)
     character*m string
     integer*2 number
     character*l string1, string2, ...

DESCRIPTION
     _S_t_r_i_n_g is a character function that takes on the value of
     the concatenation of a _n_u_m_b_e_r of strings.  If the strings
     are too long, the length of string is truncated to _m.  All
     blanks on the right of each component string are removed
     unless the string consists solely of one blank space.

EXAMPLE
           character*100 string
           character*1 per
           character*10 out
           per="."
           out="output"
           write(6,1)string(6,"This_    ",out," ",
          1  "is a st","ring",per)
       1   format(100a)
           end

     produces

     This_output is a string.

AUTHOR
     Peter L. Ward, U.S. Geological Survey, Menlo Park, Califor-
     nia

Printed 5/27/83                                                 1