[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
COPYCHRS
. Summary
copychrs(str <source>, int <target>, int <pos>, int <count>);
. Description
The copychrs function copies a number of characters from one string
into another, Characters from the string <source> are copied into
the string <target> at the position <pos> (note that SALT string
offsets start at 0, not 1 as in some languages). until <count> char-
acters are copied. Only as many characters as will fit in <target>
are copied.
This function is very similar to substr, except that it is not
string oriented, and does not stop copying characters when a 0 value
is encountered.
The substr function copies a portion of one string to another. Char-
acters from position <pos> in string <source> are copied into
string <target> (note that SALT string offsets start at 0, not 1 as
in some languages). Characters are copied until a 0 (NULL) value is
encountered (normally at the end of every string), or <max> char-
acters are copied. A 0 (NULL) is always copied at the end of the
target string. The 0 does not count as part of the <max>. Only as
many characters as will fit in <target> are copied.
. Return Value
None.
See Also:
copystr
subchrs
substr
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson