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

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

Contents


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

NAME    [Toc]    [Back]

     REPEAT - Concatenates several copies of a string

SYNOPSIS    [Toc]    [Back]

     REPEAT ([STRING=]string, [NCOPIES=]ncopies)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     The REPEAT	intrinsic function concatenates	several	copies of a string.
     It	returns	the specified number of	concatenated copies of the input
     string as the result.  If the number of copies is zero, the result	is
     a string of zero length.

     REPEAT accepts the	following arguments:

     string    Must be a scalar	and of type character.

     ncopies   Must be either 0	or a positive integer.	Must also be a
	       scalar.

     REPEAT 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 of
     ncopies times the length of string.  The value of the result is the
     concatenation of ncopies of string.

     If	ncopies	is zero, the result is a string	of zero	length.

EXAMPLES    [Toc]    [Back]

     In	the following program, a literal with a	trailing blank is repeated.

	  CHARACTER*14 CHVAR
	  CHVAR	= REPEAT('STRING ',2)
	  PRINT	'(3A)',	'>', CHVAR, '<'
	  END

     The output	of the program is:

	  >STRING STRING <

SEE ALSO    [Toc]    [Back]

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

NAME    [Toc]    [Back]

     REPEAT - Concatenates several copies of a string

SYNOPSIS    [Toc]    [Back]

     REPEAT ([STRING=]string, [NCOPIES=]ncopies)

IMPLEMENTATION    [Toc]    [Back]

     UNICOS, UNICOS/mk,	and IRIX systems

STANDARDS    [Toc]    [Back]

     Fortran 90

DESCRIPTION    [Toc]    [Back]

     The REPEAT	intrinsic function concatenates	several	copies of a string.
     It	returns	the specified number of	concatenated copies of the input
     string as the result.  If the number of copies is zero, the result	is
     a string of zero length.

     REPEAT accepts the	following arguments:

     string    Must be a scalar	and of type character.

     ncopies   Must be either 0	or a positive integer.	Must also be a
	       scalar.

     REPEAT 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 of
     ncopies times the length of string.  The value of the result is the
     concatenation of ncopies of string.

     If	ncopies	is zero, the result is a string	of zero	length.

EXAMPLES    [Toc]    [Back]

     In	the following program, a literal with a	trailing blank is repeated.

	  CHARACTER*14 CHVAR
	  CHVAR	= REPEAT('STRING ',2)
	  PRINT	'(3A)',	'>', CHVAR, '<'
	  END

     The output	of the program is:

	  >STRING STRING <

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
ovbcopy Tru64 General: Copies a byte string with a specified limit
strcpy Tru64 General: Copies a null-terminated character string
copystr Tru64 General: Copies a null-terminated character string with a specified limit
strncpy Tru64 General: Copies a null-terminated character string with a specified limit
cat Tru64 Concatenates or displays files
pullupmsg Tru64 STREAMS: Concatenates bytes in a message
linkb Tru64 STREAMS: Concatenates two message blocks
ivcat IRIX concatenates and converts Inventor files
copyinstr Tru64 General: Copies a null-terminated string from a user address space to a kernel address space
copyoutstr Tru64 General: Copies a null-terminated string from a kernel address space to a user address space
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service