Guardian C Library Calls Reference Manual

Reference to Library Calls
Guardian TNS C Library Calls Reference Manual128833 3-175
stccpy (supplementary)
stccpy (supplementary)
The stccpy function copies not more than a specified number of characters from one
string to another. For a similar ISO C Standard function, see“strncpy” on page 3-205.
str1_ptr
points to the location to copy to.
str2_ptr
points to the string to copy.
max
specifies the maximum number of characters to copy. max must be a positive integer.
Return Value
is the number of characters actually copied from *str2_ptr to *str1_ptr.
Usage Guidelines
The string at str1_ptr is terminated by a null character, whether the maximum count
or a null character stopped the copy operation.
#include <stringh>
size_t stccpy(char *str1_ptr, char *str2_ptr, size_t max);