[comp.lang.postscript] Concatenating strings?

nelson@sun.soe.clarkson.edu (Russ Nelson) (07/22/89)

How do I concatenate strings?  I want to concatenate FirstName and LastName
with a single space between them.  The following doesn't work because the
string on the bottom of the stack is its maximum length.

	% concatenate FirstName and LastName.
	FirstName length LastName length add 1 add string
	dup 0 FirstName putinterval
	dup dup length ( ) putinterval
	dup dup length LastName putinterval
	% then I pass the resultant string to a subroutine.

Or am I asking the wrong question, i.e. am I doing it the wrong way?

-- 
--russ (nelson@clutx [.bitnet | .clarkson.edu])|(70441.205@compuserve.com)