home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
cpm
/
cug
/
softt-3.lbr
/
ADDSTR.DOC
< prev
next >
Wrap
Text File
|
1984-07-05
|
896b
|
47 lines
.bp 1
.in 0
.he 'ADDSTR (2)'7/23/80'ADDSTR (2)'
.fo ''-#-''
.fi
.in 7
.ti -7
NAME
.br
addstr - add string s to str(j) if it fits, increment j
.sp 1
.ti -7
SYNOPSIS
.br
.nf
stat = addstr(s, array, j, maxsize)
character s(ARB), array(ARB)
integer j # j is incremented
integer maxsize
integer stat returned as YES/NO
.fi
.sp 1
.ti -7
DESCRIPTION
.br
Copies the string 's' to array 'str', starting in location 'j'.
J is incremented to point to the next free position in 'str'.
If the addition of s to str will exceed its maximum length (maxsize),
no copying is done and the status NO is returned.
Both s and str are ascii character arrays stored one character per
array element.
YES is returned if the routine succeeded, otherwise NO.
.sp 1
.ti -7
SEE ALSO
.br
scopy, stcopy, addset, concat
.sp 1
.ti -7
DIAGNOSTICS
.br
None