Info-Mac Archive Downloads: dev/db/a4d/ext/

Back to dev/db/a4d/ext/

4D SpaceBreak Ext (space-break-ext.hqx)

Download space-break-ext.hqx (2,617 KB)


From: SMTP%"ALLAN@otago.ac.nz" 30-JUL-1991 21:04:39.91
To: hagood@scri1.scri.fsu.edu
CC:
Subj: 4D SpaceBreak Ext

Date: Wed, 31 Jul 91 12:57 GMT +1200
From: Allan Udy
Subject: 4D SpaceBreak Ext
To: hagood@scri1.scri.fsu.edu
X-VMS-To: IN%"hagood@scri1.scri.fsu.edu"

SpaceBreak(fullstr;len;returnstr; remainstr)

This external breaks a string at the last space before the passed length. A string without spaces will be broken at the length point. A string shorter than the length will be returned complete.

This routine will take a long string and break it into lines of length vlen each separated by a CRLF. This is useful for serial printing when you want to break a page of text into lines of a specified length. Be sure to initialize all variables befor